About Pi Downloads Documentation Plugins Developer Forum Issues

pi.util.Number.base

Summary

Converts a decimal number to the value of the chosen numeral system.

Syntax

pi.util.Number.base(number,system)

Usage Example

>>> pi.util.Number.base(5,2);
"101"
>>> pi.util.Number.decimal(101,5);
5
>>> pi.util.Number.decimal(1235,16);
"4d3"

See Also