Adds two non-negative finite numbers, returning a + b as a
NonNegativeFiniteNumber.
Returns the smallest integer greater than or equal to a non-negative finite number.
Divides two non-negative finite numbers, returning a / b as a
NonNegativeFiniteNumber.
Returns the greatest integer less than or equal to a non-negative finite number.
Converts an arbitrary number into a NonNegativeFiniteNumber, saturating
it into the range [MIN_VALUE, MAX_VALUE].
Unlike asNonNegativeFiniteNumber, this is total: out-of-range inputs are
clamped to the nearest representable NonNegativeFiniteNumber instead of
throwing.
Type guard that checks if a value is a non-negative finite number.
isNonNegativeFiniteNumber for usage examples
Readonlymax: (...values: readonly NonNegativeFiniteNumber[]) => NonNegativeFiniteNumberReturns the largest of the given non-negative finite numbers.
Readonlymin: (...values: readonly NonNegativeFiniteNumber[]) => NonNegativeFiniteNumberReturns the smallest of the given non-negative finite numbers.
The smallest value representable as NonNegativeFiniteNumber (the lower
saturation target of fromNumber).
Multiplies two non-negative finite numbers, returning a * b as a
NonNegativeFiniteNumber.
Raises a to the power b, returning a ** b as a
NonNegativeFiniteNumber.
Generates a random NonNegativeFiniteNumber within the given range.
The range is inclusive on both ends.
Returns the value of a non-negative finite number rounded to the nearest integer.
Subtracts two non-negative finite numbers, returning a - b as a
NonNegativeFiniteNumber.
Namespace providing type-safe operations for the
NonNegativeFiniteNumberbranded type.The
NonNegativeFiniteNumbertype represents a non-negative finite number.