Skip to content

FixedPrecisionInfo

FixedPrecisionInfo<T> = object

Defined in: packages/math-numbers/src/precision-kind.ts:67

Metadata describing the format of a fixed-precision numeric type.

The static FORMAT_INFO property of a concrete class carries this.

T

readonly maxDecimalPrecision: number

Defined in: packages/math-numbers/src/precision-kind.ts:84

Number of significant decimal digits guaranteed to round-trip through the type without loss. Equivalent to C DBL_DIG for floating-point, or floor(log₁₀(MAX)) for integer types.


readonly maxNegative: T

Defined in: packages/math-numbers/src/precision-kind.ts:78

Smallest (most negative) representable value.


readonly maxPositive: T

Defined in: packages/math-numbers/src/precision-kind.ts:71

Largest positive representable value.


readonly minNegative: T

Defined in: packages/math-numbers/src/precision-kind.ts:76

Largest negative value representable (closest negative to zero, < 0). For symmetric types (e.g. float) this equals −minPositive.


readonly minPositive: T

Defined in: packages/math-numbers/src/precision-kind.ts:69

Smallest positive representable value (> 0).