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