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