Const
Adds two NonZeroUint16 values.
Clamps a number to the NonZeroUint16 range.
Divides one NonZeroUint16 by another using floor division.
Type guard to check if a value is a NonZeroUint16.
Readonly
max: (...values: readonly WithSmallInt<PositiveUint16, 40>[]) => PositiveUint16Returns the larger of two NonZeroUint16 values.
Readonly
MAX_VALUE: numberThe maximum value for a 16-bit non-zero unsigned integer.
Readonly
min: (...values: readonly WithSmallInt<PositiveUint16, 40>[]) => PositiveUint16Returns the smaller of two NonZeroUint16 values.
Readonly
MIN_VALUE: 1The minimum value for a 16-bit non-zero unsigned integer.
Multiplies two NonZeroUint16 values.
Raises a NonZeroUint16 to the power of another NonZeroUint16.
Generates a random NonZeroUint16 value within the valid range.
Subtracts one NonZeroUint16 from another.
Namespace providing type-safe arithmetic operations for 16-bit non-zero unsigned integers.
All operations automatically clamp results to the valid NonZeroUint16 range [1, 65535]. This ensures that all arithmetic maintains the 16-bit non-zero unsigned integer constraint, with results below 1 clamped to MIN_VALUE and overflow results clamped to MAX_VALUE.