Algorithm in JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Algorithm in JavaScript

how to calculate the number in base system? for example 1756 in 50 base system

19th Sep 2018, 10:02 AM
Сергей Пунько
Сергей Пунько - avatar
1 Answer
0
I think it includes repeated divisions by the base value of the new base until the quotient is zero and the remainder at each step is stored.The last remainder value is the most significant digit whereas the first one is the least significant digit of the converted number.
19th Sep 2018, 1:02 PM
Alcatraz
Alcatraz - avatar