Packageorg.granite.math
Interfacepublic interface BigNumber extends flash.utils.IExternalizable, IValue
ImplementorsBigDecimal, BigInteger, Long

Common interface for the Long, BigInteger and BigDecimal classes.

See also

Long
BigInteger
BigDecimal


Public Properties
 PropertyDefined by
  sign : int
[read-only] The sign of this big number as an integer (-1 for negative, 0 for null or 1 for positive numbers).
BigNumber
Public Methods
 MethodDefined by
 Inherited
equals(o:*):Boolean
Tells if this object is equal to the supplied parameter.
IValue
  
toInt():int
Returns this big number as an integer (with possible loose of precision).
BigNumber
  
toNumber():Number
Returns this big number as a Number (with possible loose of precision).
BigNumber
Property detail
signproperty
sign:int  [read-only]

The sign of this big number as an integer (-1 for negative, 0 for null or 1 for positive numbers).

Implementation
    public function get sign():int
Method detail
toInt()method
public function toInt():int

Returns this big number as an integer (with possible loose of precision).

Returns
int — this big number as an integer.
toNumber()method 
public function toNumber():Number

Returns this big number as a Number (with possible loose of precision).

Returns
Number — this big number as a Number.