function classify
classify(x: number): FloatClassClassify a number into its floating point category.
Examples
Example 1
Example 1
xnumber.classify(0); // → FloatClass.ZERO xnumber.classify(1e-320); // → FloatClass.SUBNORMAL xnumber.classify(3.14); // → FloatClass.NORMAL xnumber.classify(Infinity); // → FloatClass.INFINITE xnumber.classify(NaN); // → FloatClass.NAN
Parameters
x: numbera number
Return Type
floating point class of x