Skip to main content

Class: abstract LiquidNumber

Extended by

Constructors

new LiquidNumber()

new LiquidNumber(val): LiquidNumber

Parameters

val: string | number | Decimal

Returns

LiquidNumber

Defined in

src/number.ts:12

Properties

float

abstract float: boolean

Defined in

src/number.ts:9


n

readonly n: Decimal

Defined in

src/number.ts:10

Methods

abs()

abs(): NumberT

Returns

NumberT

Defined in

src/number.ts:20


ceil()

ceil(): NumberT

Returns

NumberT

Defined in

src/number.ts:25


div()

div(n): NumberT

Parameters

n: N

Returns

NumberT

Defined in

src/number.ts:29


eq()

eq(n): boolean

Parameters

n: N

Returns

boolean

Defined in

src/number.ts:36


floor()

floor(): NumberT

Returns

NumberT

Defined in

src/number.ts:40


gt()

gt(n): boolean

Parameters

n: N

Returns

boolean

Defined in

src/number.ts:44


gte()

gte(n): boolean

Parameters

n: N

Returns

boolean

Defined in

src/number.ts:48


isFinite()

isFinite(): boolean

Returns

boolean

Defined in

src/number.ts:114


lt()

lt(n): boolean

Parameters

n: N

Returns

boolean

Defined in

src/number.ts:52


lte()

lte(n): boolean

Parameters

n: N

Returns

boolean

Defined in

src/number.ts:56


max()

max(n): NumberT

Parameters

n: N

Returns

NumberT

Defined in

src/number.ts:60


min()

min(n): NumberT

Parameters

n: N

Returns

NumberT

Defined in

src/number.ts:65


minus()

minus(n): NumberT

Parameters

n: N

Returns

NumberT

Defined in

src/number.ts:70


mod()

mod(n): NumberT

Parameters

n: N

Returns

NumberT

Defined in

src/number.ts:78


plus()

plus(n): NumberT

Parameters

n: N

Returns

NumberT

Defined in

src/number.ts:86


round()

round(decimalPlaces?): NumberT

Parameters

decimalPlaces?: number

Returns

NumberT

Defined in

src/number.ts:94


times()

times(n): NumberT

Parameters

n: N

Returns

NumberT

Defined in

src/number.ts:102


trunc()

trunc(): NumberT

Returns

NumberT

Defined in

src/number.ts:110


valueOf()

valueOf(): number

Returns

number

Defined in

src/number.ts:16