Number Class

The Number class contains methods that format or otherwise manipulate numbers.

Ancestor

Primitive

Descendants

None

 

Methods

Description

byte

Instantiate a single byte byte string

char

Instantiate a single character string

fnumber

Returns a formatted version of the number, usually for output.

random

Provides a random number.

roundCur

Rounds an amount to the number of decimals indicated by a currency.

roundDec

Rounds an amount to a specified number of digits.

toString

Returns a formatted version of the number.

zero

Formats the number by filling in zeros.