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