Amount
Extends
Amount
Methods
abs()
abs(): Amount;Returns an absolute Amount.
Returns
Amount
Inherited from
Bkper.Amount.abscmp()
cmp(n): -1 | 0 | 1;Compare
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
-1 | 0 | 1
Inherited from
Bkper.Amount.cmpdiv()
div(n): Amount;Divide by
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
Amount
Inherited from
Bkper.Amount.diveq()
eq(n): boolean;Equals to
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
boolean
Inherited from
Bkper.Amount.eqgt()
gt(n): boolean;Greater than
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
boolean
Inherited from
Bkper.Amount.gtgte()
gte(n): boolean;Greater than or equal
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
boolean
Inherited from
Bkper.Amount.gtelt()
lt(n): boolean;Less than
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
boolean
Inherited from
Bkper.Amount.ltlte()
lte(n): boolean;Less than or equal to
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
boolean
Inherited from
Bkper.Amount.lteminus()
minus(n): Amount;Minus
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
Amount
Inherited from
Bkper.Amount.minusmod()
mod(n): Amount;Modulo - the integer remainder of dividing this Amount by n.
Similar to % operator
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
Amount
Inherited from
Bkper.Amount.modplus()
plus(n): Amount;Sum
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
Amount
Inherited from
Bkper.Amount.plusround()
round(dp?): Amount;Round to a maximum of dp decimal places.
Parameters
| Parameter | Type |
|---|---|
dp? | number |
Returns
Amount
Inherited from
Bkper.Amount.roundtimes()
times(n): Amount;Multiply
Parameters
| Parameter | Type |
|---|---|
n | string | number | Amount |
Returns
Amount
Inherited from
Bkper.Amount.timestoFixed()
toFixed(dp?): string;Returns a string representing the value of this Amount in normal notation to a fixed number of decimal places dp.
Parameters
| Parameter | Type |
|---|---|
dp? | number |
Returns
string
Inherited from
Bkper.Amount.toFixedtoNumber()
toNumber(): number;Returns a primitive number representing the value of this Amount.
Returns
number
Inherited from
Bkper.Amount.toNumbertoString()
toString(): string;Returns a string representing the value of this Amount.
Returns
string
Inherited from
Bkper.Amount.toString