Namespace providing type-safe arithmetic operations for negative safe
integers.
NegativeSafeInt represents safe integers that are strictly less than zero
([Number.MIN_SAFE_INTEGER, -1]). Operations that stay within the negative
safe integers clamp their results to the valid range, while operations whose
result leaves the set (mul, div, abs) are typed to reflect the actual
sign of the result.
Namespace providing type-safe arithmetic operations for negative safe integers.
NegativeSafeInt represents safe integers that are strictly less than zero (
[Number.MIN_SAFE_INTEGER, -1]). Operations that stay within the negative safe integers clamp their results to the valid range, while operations whose result leaves the set (mul,div,abs) are typed to reflect the actual sign of the result.