About Pi Downloads Documentation Plugins Developer Forum Issues

pi.util.Number2009-01-06 09:23:28

Summary

pi.util is an object that contains some essential javascript tools.

Methods

range pi.util.Number.range(from (optional),to);
Generates lists containing arithmetic progressions.
base pi.util.Number.base(number,system)
Converts a decimal number to the value of the chosen numeral system.
decimal pi.util.Number.decimal(number,system)
Converts a number from a numeral system to the decimal value.
random pi.util.Number.random(min,max)
Generates a random number.