Adds two NonZeroUint16 values.
Clamps a number to the NonZeroUint16 range.
Type guard to check if a value is a NonZeroUint16.
Readonlymax: (...values: readonly WithSmallInt<PositiveUint16>[]) => PositiveUint16Returns the larger of two NonZeroUint16 values.
ReadonlyMAX_VALUE: numberThe maximum value for a 16-bit non-zero unsigned integer.
Readonlymin: (...values: readonly WithSmallInt<PositiveUint16>[]) => PositiveUint16Returns the smaller of two NonZeroUint16 values.
ReadonlyMIN_VALUE: 1The minimum value for a 16-bit non-zero unsigned integer.
Multiplies two NonZeroUint16 values.
Both add and mul stay within [1, 65535]. For the non-closed
operations (sub/div, whose result may be 0) use Num.sub /
Num.divInt.
Raises a NonZeroUint16 to the power of another NonZeroUint16.
Generates a random NonZeroUint16 value within the valid range.
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.