Module number
Number Functions
numberDecimalPortion
- numberDecimalPortion(numberGetFrom: number | string, removeTrailingZeros?: boolean): string
-
Parameters
-
numberGetFrom: number | string
-
removeTrailingZeros: boolean = true
Returns string
numberRanged
- numberRanged(numberLike: any, defaultNumber?: number, minimalNumber?: number, maximumNumber?: number, shouldBeInteger?: boolean): number
-
Parameters
-
numberLike: any
-
defaultNumber: number = 0
-
minimalNumber: number = ...
-
maximumNumber: number = ...
-
shouldBeInteger: boolean = false
Returns number
numberRound
- numberRound(value: number, precision: number): number
-
Parameters
-
value: number
-
precision: number
Returns number
numberZeroPad
- numberZeroPad(numberToPad?: number | string, leadingLength?: number, decimalLength?: number): string
-
Parameters
-
numberToPad: number | string = 0
-
leadingLength: number = 0
-
Optional decimalLength: number
Returns string
numberDecimalPortion
Get number decimal portion.
{TypeError}
0.1.39