Returns the absolute value of a negative finite number.
The result is non-negative and keeps the NegativeFiniteNumber brand.
Adds two negative finite numbers, returning a + b as a
NegativeFiniteNumber.
Returns the smallest integer greater than or equal to a negative finite number.
Returns the greatest integer less than or equal to a negative finite number.
Converts an arbitrary number into a NegativeFiniteNumber, saturating it
into the range [MIN_VALUE, MAX_VALUE].
Unlike asNegativeFiniteNumber, this is total: out-of-range inputs are
clamped to the nearest representable NegativeFiniteNumber instead of
throwing.
Type guard that checks if a value is a negative finite number.
isNegativeFiniteNumber for usage examples
Readonlymax: (...values: readonly NegativeFiniteNumber[]) => NegativeFiniteNumberReturns the largest of the given negative finite numbers.
The largest value representable as NegativeFiniteNumber (the upper
saturation target of fromNumber). The domain is open at 0 (excluded),
so this is -Number.MIN_VALUE — the negative double closest to 0 —
rather than 0.
Readonlymin: (...values: readonly NegativeFiniteNumber[]) => NegativeFiniteNumberReturns the smallest of the given negative finite numbers.
Raises a to the power b, returning a ** b as a
NegativeFiniteNumber.
Generates a random NegativeFiniteNumber within the given range.
The range is inclusive on both ends.
Returns the value of a negative finite number rounded to the nearest integer.
Subtracts two negative finite numbers, returning a - b as a
NegativeFiniteNumber.
Namespace providing type-safe operations for the
NegativeFiniteNumberbranded type.The
NegativeFiniteNumbertype represents a negative finite number.