Int(value: number | string | Int): IntCreate arbitrary precision integer.
Example:
Int(42)
Int("99999999999999")
Int(anotherInt)add(other: number | string | Int): Intsubtract(other: number | string | Int): Intmultiply(other: number | string | Int): Intdivide(other: number | string | Int): IntInteger division (truncates decimal).
mod(other: number | string | Int): Intnegate(): Intabs(): Intequals(other: number | string | Int): booleangt(other: number | string | Int): boolean
gte(other: number | string | Int): booleanlt(other: number | string | Int): boolean
lte(other: number | string | Int): booleantoString(): stringtoNumber(): numberDecimal(value: number | string | Decimal): DecimalCreate precise decimal number.
Example:
Decimal("0.1")
Decimal(3.14)
Decimal(anotherDecimal)Same as Int, plus:
round(decimalPlaces: number): DecimalExample:
Decimal("3.14159").round(2).toString() // "3.14"Same methods as Int.