Adds two NonPositiveSafeInt values.
Clamps a number to the NonPositiveSafeInt range.
Type guard to check if a value is a NonPositiveSafeInt.
Readonlymax: (...values: readonly WithSmallInt<NonPositiveSafeInt>[]) => NonPositiveSafeIntReturns the larger of two NonPositiveSafeInt values.
ReadonlyMAX_VALUE: 0The maximum value for a non-positive safe integer.
Readonlymin: (...values: readonly WithSmallInt<NonPositiveSafeInt>[]) => NonPositiveSafeIntReturns the smaller of two NonPositiveSafeInt values.
ReadonlyMIN_VALUE: numberThe minimum value for a non-positive safe integer.
Raises a NonPositiveSafeInt to the power of another NonPositiveSafeInt.
Generates a random NonPositiveSafeInt value within the valid range.
Subtracts one NonPositiveSafeInt from another.
Namespace providing type-safe arithmetic operations for non-positive safe integers.
All operations automatically clamp results to the valid NonPositiveSafeInt range [Number.MIN_SAFE_INTEGER, 0]. This ensures that all arithmetic maintains the non-positive safe integer constraint, with positive results clamped to 0 and underflow results clamped to MIN_VALUE.