OverviewSingleDeprecated

window

class Number

Object
->Number

native class Number
extends Object
Native JavaScript class Number. Includes GI extensions.

Field Summary
native static Number
MAX_VALUE
native static Number
MIN_VALUE
native static Number
NEGATIVE_INFINITY
native static Number
NaN
native static Number
POSITIVE_INFINITY
Constructor Summary
native void
Method Summary
Number
roundTo(intUnit : int)
Deprecated. Use jsx3.util.numRound() instead.
native void
native void
String
zeroPad(intDigits : int)
Deprecated. Use the jsx3.util.NumberFormat class.
Methods Inherited From Object
toString
Field Detail

MAX_VALUE

native static Number MAX_VALUE

MIN_VALUE

native static Number MIN_VALUE

NEGATIVE_INFINITY

native static Number NEGATIVE_INFINITY

NaN

native static Number NaN

POSITIVE_INFINITY

native static Number POSITIVE_INFINITY
Constructor Detail

Number

native void Number()
Method Detail

roundTo

Number roundTo(intUnit : int)
Deprecated. Use jsx3.util.numRound() instead.
Rounds the number (this) to the nearest value that can be divided by @intUnit.

Parameters:

intUnitunit to use

Returns:

 

toFixed

native void toFixed()

toPrecision

native void toPrecision()

zeroPad

String zeroPad(intDigits : int)
Deprecated. Use the jsx3.util.NumberFormat class.
Left pads this number with zeros to return a string of length intDigits.

Parameters:

intDigitsthe length of the string to return

Returns: