| Package | org.granite.math |
| Interface | public interface BigNumber extends flash.utils.IExternalizable, IValue |
| Implementors | BigDecimal, BigInteger, Long |
Long, BigInteger and
BigDecimal classes.
See also
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
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 | ||
| sign | property |
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
| toInt | () | method |
public function toInt():intReturns this big number as an integer (with possible loose of precision).
Returnsint — this big number as an integer.
|
| toNumber | () | method |
public function toNumber():Number
Returns this big number as a Number (with possible loose of
precision).
Number — this big number as a Number.
|