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