Returns the absolute value of a non-zero integer.
Type guard to check if a value is a NonZeroInt.
Readonlymax: (...values: readonly WithSmallInt<NonZeroInt>[]) => NonZeroIntReturns the larger of two non-zero integers.
Readonlymin: (...values: readonly WithSmallInt<NonZeroInt>[]) => NonZeroIntReturns the smaller of two non-zero integers.
Multiplies two non-zero integers.
The product of two non-zero 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 non-zero integer to the power of another non-zero integer.
Generates a random non-zero integer.
Namespace providing type-safe arithmetic operations for non-zero integers.
All operations maintain the non-zero constraint, ensuring that results are always valid NonZeroInt values. Division operations return floor division results, and all arithmetic maintains integer precision.