Returns the absolute value of a non-zero finite number.
The result is non-negative and keeps the NonZeroFiniteNumber brand.
Returns the smallest integer greater than or equal to a non-zero finite number.
Divides two non-zero finite numbers, returning a / b as a
NonZeroFiniteNumber.
Exact (non-flooring) division of two non-zero finite numbers is always
non-zero, so this stays closed. For the non-closed operations (add/sub,
whose result may be 0) use Num.add/Num.sub.
Returns the greatest integer less than or equal to a non-zero finite number.
Type guard that checks if a value is a non-zero finite number.
isNonZeroFiniteNumber for usage examples
Readonlymax: (...values: readonly NonZeroFiniteNumber[]) => NonZeroFiniteNumberReturns the largest of the given non-zero finite numbers.
Readonlymin: (...values: readonly NonZeroFiniteNumber[]) => NonZeroFiniteNumberReturns the smallest of the given non-zero finite numbers.
Multiplies two non-zero finite numbers, returning a * b as a
NonZeroFiniteNumber.
Raises a to the power b, returning a ** b as a NonZeroFiniteNumber.
Generates a random NonZeroFiniteNumber within the given range.
The range is inclusive on both ends.
Returns the value of a non-zero finite number rounded to the nearest integer.
Namespace providing type-safe operations for the
NonZeroFiniteNumberbranded type.The
NonZeroFiniteNumbertype represents a non-zero finite number.