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