Skip to main content

Reference / Modules / node-api / Numbers / NormalizedNumber

Class: NormalizedNumber

node-api.Numbers.NormalizedNumber

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new NormalizedNumber(num): NormalizedNumber

Parameters

NameType
numstring

Returns

NormalizedNumber

Defined in

numbers.ts:9

Properties

_decimalPart

Private Readonly _decimalPart: string

Defined in

numbers.ts:6


_integerPart

Private Readonly _integerPart: string

Defined in

numbers.ts:5


_negative

Private Readonly _negative: boolean

Defined in

numbers.ts:7


_normalized

Private Readonly _normalized: string

Defined in

numbers.ts:4

Methods

_split

_split(): Object

Returns

Object

NameType
decimalPartstring
integerPartstring
negativeboolean

Defined in

numbers.ts:17


isNegative

isNegative(): boolean

Returns

boolean

Defined in

numbers.ts:125


isZero

isZero(): boolean

Returns

boolean

Defined in

numbers.ts:109


negate

negate(): NormalizedNumber

Returns

NormalizedNumber

Defined in

numbers.ts:113


normalize

normalize(num): string

Parameters

NameType
numstring

Returns

string

Defined in

numbers.ts:36


split

split(): Object

Returns

Object

NameType
decimalPartstring
integerPartstring
negativeboolean

Defined in

numbers.ts:65


toFixedPrecision

toFixedPrecision(decimals): string

Parameters

NameType
decimalsnumber

Returns

string

Defined in

numbers.ts:97


toFixedPrecisionDecimals

toFixedPrecisionDecimals(decimals): string

Parameters

NameType
decimalsnumber

Returns

string

Defined in

numbers.ts:101


toInteger

toInteger(): string

Returns

string

Defined in

numbers.ts:85


toNumber

toNumber(): number

Returns

number

Defined in

numbers.ts:105


toString

toString(): string

Returns

string

Defined in

numbers.ts:61


unnormalize

unnormalize(): string

Returns

string

Defined in

numbers.ts:73


zeroStripLeft

zeroStripLeft(num): string

Parameters

NameType
numstring

Returns

string

Defined in

numbers.ts:49


zeroStripRight

zeroStripRight(num): string

Parameters

NameType
numstring

Returns

string

Defined in

numbers.ts:57