Const
Casts a number to a FiniteNumber branded type.
This function validates that the input is finite (not NaN, Infinity, or -Infinity) and returns it with the FiniteNumber brand. This ensures type safety for operations that require finite numeric values.
The value as a FiniteNumber branded type
If the value is NaN, Infinity, or -Infinity
Casts a number to a FiniteNumber branded type.
This function validates that the input is finite (not NaN, Infinity, or -Infinity) and returns it with the FiniteNumber brand. This ensures type safety for operations that require finite numeric values.