@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
| Property | Type | Description | Defined in |
|---|---|---|---|
exponent | number | The exponent part of the number, indicating the power of 10 by which the mantissa is multiplied. | src/@types/deconstructed-number.ts:14 |
mantissa | string | The mantissa (or significand) part of the number, represented as a string. | src/@types/deconstructed-number.ts:12 |
sign | 1 | -1 | The sign of the number, where 1 indicates positive and -1 indicates negative. | src/@types/deconstructed-number.ts:10 |
value | number | The original numeric value, rounded to the specified precision | src/@types/deconstructed-number.ts:8 |