Constructors
Accessors
ffiValue
- get ffiValue(): number
Returns number
isZero
- get isZero(): boolean
Returns boolean
magnitudeEnd
- get magnitudeEnd(): number
Returns number
magnitudeStart
- get magnitudeStart(): number
Returns number
nonzeroMagnitudeEnd
- get nonzeroMagnitudeEnd(): number
Returns number
nonzeroMagnitudeStart
- get nonzeroMagnitudeStart(): number
Returns number
sign
- get sign(): FixedDecimalSign
- set sign(sign): void
Returns void
Methods
applySignDisplay
- applySignDisplay(signDisplay): void
Returns void
ceil
- ceil(position): void
Returns void
concatenateEnd
- concatenateEnd(other): boolean
Returns boolean
digitAt
- digitAt(magnitude): number
Returns number
expand
- expand(position): void
Returns void
floor
- floor(position): void
Returns void
multiplyPow10
- multiplyPow10(power): void
Returns void
padEnd
- padEnd(position): void
Returns void
padStart
- padStart(position): void
Returns void
round
- round(position): void
Returns void
roundWithMode
- roundWithMode(position, mode): void
Returns void
roundWithModeAndIncrement
- roundWithModeAndIncrement(position, mode, increment): void
Returns void
setMaxPosition
- setMaxPosition(position): void
Returns void
toString
- toString(): string
Returns string
trimEnd
- trimEnd(): void
Returns void
trimStart
- trimStart(): void
Returns void
trunc
- trunc(position): void
Returns void
Static
fromNumberWithLowerMagnitude
- fromNumberWithLowerMagnitude(f, magnitude): FixedDecimal
Parameters
- f: number
- magnitude: number
Static
fromNumberWithRoundTripPrecision
- fromNumberWithRoundTripPrecision(f): FixedDecimal
Static
fromNumberWithSignificantDigits
- fromNumberWithSignificantDigits(f, digits): FixedDecimal
See the Rust documentation for
FixedDecimal
for more information.