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