convert_base_10_to_any_base

emlib.mathlib.convert_base_10_to_any_base(x, base)[source]

Converts given number x, from base 10 to base b

Parameters:
  • x (int) – the number in base 10

  • base (int) – base to convert

Return type:

str

Returns:

x expressed in base base, as string