Returns the absolute value of a 32-bit non-zero signed integer.
Clamps a number to the NonZeroInt32 range (avoiding zero).
Type guard to check if a value is a NonZeroInt32.
Readonlymax: (...values: readonly WithSmallInt<NonZeroInt32>[]) => NonZeroInt32Returns the larger of two NonZeroInt32 values.
ReadonlyMAX_VALUE: numberThe maximum value for a 32-bit non-zero signed integer.
Readonlymin: (...values: readonly WithSmallInt<NonZeroInt32>[]) => NonZeroInt32Returns the smaller of two NonZeroInt32 values.
ReadonlyMIN_VALUE: numberThe minimum value for a 32-bit non-zero signed integer.
Multiplies two NonZeroInt32 values.
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 NonZeroInt32 to the power of another NonZeroInt32.
Generates a random NonZeroInt32 value within the valid range.
Namespace providing type-safe arithmetic operations for 32-bit non-zero signed integers.
All operations automatically clamp results to the valid NonZeroInt32 range [-2147483648, 2147483647] excluding 0. This ensures that all arithmetic maintains the 32-bit non-zero signed integer constraint, preventing zero results and overflow.