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