Skip to content

@technobuddha > library > Math > Number

Type Alias: DeconstructedNumber

ts
type DeconstructedNumber = {
  exponent: number;
  mantissa: string;
  sign: 1 | -1;
  value: number;
};

Defined in: @types/deconstructed-number.ts:6

Represents a number that has been deconstructed into its mathematical components.

Properties

PropertyTypeDescriptionDefined in
exponentnumberThe exponent part of the number, indicating the power of 10 by which the mantissa is multiplied.src/@types/deconstructed-number.ts:14
mantissastringThe mantissa (or significand) part of the number, represented as a string.src/@types/deconstructed-number.ts:12
sign1 | -1The sign of the number, where 1 indicates positive and -1 indicates negative.src/@types/deconstructed-number.ts:10
valuenumberThe original numeric value, rounded to the specified precisionsrc/@types/deconstructed-number.ts:8