Links

Search This Blog

June 07, 2019

Base 10 to Binary Python

def base10tobin(number_10):
  b = ""
  while number_10:
    b += str(number_10 % 2)
    number_10 //= 2
  return b[::-1]

June 06, 2019

Numeral Systems Javascript


Default charset is set to base 16.
You input value in base X and output is in base 10.

Charset:


Input:


Output:
Try changing input.

Used code from https://www.freecodecamp.org/news/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb/
Work in progress...