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