Skip to main content

Class: Float

Extends

Constructors

new Float()

new Float(val): Float

Parameters

val: string | number | Decimal

Returns

Float

Inherited from

LiquidNumber.constructor

Defined in

src/number.ts:12

Properties

float

readonly float: true

Overrides

LiquidNumber.float

Defined in

src/number.ts:120


n

readonly n: Decimal

Inherited from

LiquidNumber.n

Defined in

src/number.ts:10

Methods

abs()

abs(): NumberT

Returns

NumberT

Inherited from

LiquidNumber.abs

Defined in

src/number.ts:20


ceil()

ceil(): NumberT

Returns

NumberT

Inherited from

LiquidNumber.ceil

Defined in

src/number.ts:25


div()

div(n): NumberT

Parameters

n: N

Returns

NumberT

Inherited from

LiquidNumber.div

Defined in

src/number.ts:29


eq()

eq(n): boolean

Parameters

n: N

Returns

boolean

Inherited from

LiquidNumber.eq

Defined in

src/number.ts:36


floor()

floor(): NumberT

Returns

NumberT

Inherited from

LiquidNumber.floor

Defined in

src/number.ts:40


gt()

gt(n): boolean

Parameters

n: N

Returns

boolean

Inherited from

LiquidNumber.gt

Defined in

src/number.ts:44


gte()

gte(n): boolean

Parameters

n: N

Returns

boolean

Inherited from

LiquidNumber.gte

Defined in

src/number.ts:48


isFinite()

isFinite(): boolean

Returns

boolean

Inherited from

LiquidNumber.isFinite

Defined in

src/number.ts:114


lt()

lt(n): boolean

Parameters

n: N

Returns

boolean

Inherited from

LiquidNumber.lt

Defined in

src/number.ts:52


lte()

lte(n): boolean

Parameters

n: N

Returns

boolean

Inherited from

LiquidNumber.lte

Defined in

src/number.ts:56


max()

max(n): NumberT

Parameters

n: N

Returns

NumberT

Inherited from

LiquidNumber.max

Defined in

src/number.ts:60


min()

min(n): NumberT

Parameters

n: N

Returns

NumberT

Inherited from

LiquidNumber.min

Defined in

src/number.ts:65


minus()

minus(n): NumberT

Parameters

n: N

Returns

NumberT

Inherited from

LiquidNumber.minus

Defined in

src/number.ts:70


mod()

mod(n): NumberT

Parameters

n: N

Returns

NumberT

Inherited from

LiquidNumber.mod

Defined in

src/number.ts:78


plus()

plus(n): NumberT

Parameters

n: N

Returns

NumberT

Inherited from

LiquidNumber.plus

Defined in

src/number.ts:86


round()

round(decimalPlaces?): NumberT

Parameters

decimalPlaces?: number

Returns

NumberT

Inherited from

LiquidNumber.round

Defined in

src/number.ts:94


times()

times(n): NumberT

Parameters

n: N

Returns

NumberT

Inherited from

LiquidNumber.times

Defined in

src/number.ts:102


toString()

toString(): string

Returns a string representation of an object.

Returns

string

Defined in

src/number.ts:122


trunc()

trunc(): NumberT

Returns

NumberT

Inherited from

LiquidNumber.trunc

Defined in

src/number.ts:110


valueOf()

valueOf(): number

Returns

number

Inherited from

LiquidNumber.valueOf

Defined in

src/number.ts:16