Class: Numeral
Constructors
Constructor
ts
new Numeral(input: any, value: number): Numeral;Parameters
| Parameter | Type |
|---|---|
input | any |
value | number |
Returns
Numeral
Properties
| Property | Type |
|---|---|
prototype | Numeral |
Methods
add()
ts
add(value: any): Numeral;Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
Numeral
clone()
ts
clone(): Numeral;Returns
Numeral
difference()
ts
difference(value: any): number;Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
number
divide()
ts
divide(value: any): Numeral;Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
Numeral
format()
ts
format(inputString?: string, roundingFunction?: RoundingFunction): string;Parameters
| Parameter | Type |
|---|---|
inputString? | string |
roundingFunction? | RoundingFunction |
Returns
string
input()
ts
input(): any;Returns
any
multiply()
ts
multiply(value: any): Numeral;Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
Numeral
set()
ts
set(value: any): Numeral;Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
Numeral
subtract()
ts
subtract(value: any): Numeral;Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
Numeral
value()
ts
value(): number | null;Returns
number | null