Posts: 4,646
Threads: 1,493
Joined: Sep 2016
is there any tool to convert negative base to int?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,646
Threads: 1,493
Joined: Sep 2016
just int, not exponential. also, i want to convert balanced trinary. there was, once, a Soviet computer based on balanced trinary.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,646
Threads: 1,493
Joined: Sep 2016
(May-22-2022, 06:04 AM)Gribouillis Wrote: In this Wikipedia page there is a Java function to convert a number to negative base. It should be straightforward to translate the function to Python.
or ... use the Python code on that page. since i already understood negative base, i didn't think to check Wikipedia. i am glad you did and found it had code. thanks!
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.