Returns the absolute value of a non-zero safe integer.
Clamps a number to the non-zero safe integer range.
Type guard to check if a value is a NonZeroSafeInt.
Readonlymax: (...values: readonly WithSmallInt<NonZeroSafeInt>[]) => NonZeroSafeIntReturns the larger of two NonZeroSafeInt values.
ReadonlyMAX_VALUE: SafeUintThe maximum safe integer value (2^53 - 1).
Readonlymin: (...values: readonly WithSmallInt<NonZeroSafeInt>[]) => NonZeroSafeIntReturns the smaller of two NonZeroSafeInt values.
ReadonlyMIN_VALUE: SafeIntThe minimum safe integer value (-(2^53 - 1)).
Multiplies two NonZeroSafeInt values.
The product of two non-zero safe integers is always non-zero, so this stays
closed; for the non-closed operations (add/sub/div, whose result may
be 0) use Num.add/Num.sub/Num.divInt.
Raises a NonZeroSafeInt to the power of another NonZeroSafeInt.
Generates a random NonZeroSafeInt value within the valid range.
Namespace providing type-safe arithmetic operations for non-zero safe integers.
All operations automatically clamp results to the non-zero safe integer range, excluding zero. This ensures that all arithmetic maintains both the non-zero constraint and IEEE 754 precision guarantees, preventing precision loss while ensuring results are never zero.