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