Calculate the valid roundings when quantizing to 64-bit floats
TS/JS's number type is internally a f64, so the supplied value will be
quanitized by definition. The only corner cases occur if a non-finite value
is provided, since the valid roundings include the appropriate min or max
value.
Parameters
n: number
number to be quantized
Returns readonly number[]
all of the acceptable roundings for quantizing to 64-bits in
ascending order.
Calculate the valid roundings when quantizing to 64-bit floats
TS/JS's number type is internally a f64, so the supplied value will be quanitized by definition. The only corner cases occur if a non-finite value is provided, since the valid roundings include the appropriate min or max value.