Const
Returns the absolute value of a 32-bit non-zero signed integer.
Adds two NonZeroInt32 values.
Clamps a number to the NonZeroInt32 range (avoiding zero).
Divides one NonZeroInt32 by another using floor division.
Type guard to check if a value is a NonZeroInt32.
Readonly
max: (...values: readonly WithSmallInt<NonZeroInt32, 40>[]) => NonZeroInt32Returns the larger of two NonZeroInt32 values.
Readonly
MAX_VALUE: numberThe maximum value for a 32-bit non-zero signed integer.
Readonly
min: (...values: readonly WithSmallInt<NonZeroInt32, 40>[]) => NonZeroInt32Returns the smaller of two NonZeroInt32 values.
Readonly
MIN_VALUE: numberThe minimum value for a 32-bit non-zero signed integer.
Multiplies two NonZeroInt32 values.
Raises a NonZeroInt32 to the power of another NonZeroInt32.
Generates a random NonZeroInt32 value within the valid range.
Subtracts one NonZeroInt32 from another.
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.