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