convert_base
-
emlib.mathlib.convert_base(s, frombase, tobase)[source]
Converts s from base a to base b
- Parameters:
s (str
) – the number to convert, expressed as str
frombase (int
) – the base of s
tobase (int
) – the base to convert to
- Return type:
str
- Returns:
s expressed in base tobase
Styled using the Piccolo Theme