Number

private class
system.Number

Description

A data type representing an IEEE-754 double-precision floating-point number. You can manipulate primitive numeric values by using the methods and properties associated with the Number class. This class is identical to the JavaScript Number class. The properties of the Number class are static, which means you do not need an object to use them, so you do not need to use the constructor.

API overview

Constructor

Number ()

Attributes

Public attributes

MAX_VALUE: Number static read-only
MIN_VALUE: Number static read-only
NEGATIVE_INFINITY: Number static read-only
POSITIVE_INFINITY: Number static read-only

Functions

Public functions

fromString ( value: String ): Number static native

Parse a string into a Number

toFixed ( fractionDigits: Number = 0 ): String native

Gets a string representation of the number truncated to the specificed decimal point

Constructor

Number ()

Attributes

MAX_VALUE: Number

static read-only

MIN_VALUE: Number

static read-only

NEGATIVE_INFINITY: Number

static read-only

POSITIVE_INFINITY: Number

static read-only

Functions

fromString ( value: String ): Number

static native

Parse a string into a Number.

Parameters

value: String


getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

toFixed ( fractionDigits: Number = 0 ): String

native

Gets a string representation of the number truncated to the specificed decimal point

Parameters

fractionDigits: Number = 0 the number of digits to the right of the decimal point to include

Returns

String String representation of the number truncated to the specified decimal digits

toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.