| float_class | Function (ROM Call 0x2FA)

AMS 1.01 or higher | timath.h

short float_class (float x);

Determines the class of the floating point number.

float_class checks the floating point argument x and returns an integer result which determines the subtype of the argument, in according to the following table:

1 | Not_a_Number (NAN)
2 | Negative infinity (NEGATIVE_INF)
3 | Negative real number
5 | Negative zero (NEGATIVE_ZERO)
6 | Unsigned zero (ZERO)
7 | Positive zero (POSITIVE_ZERO)
9 | Positive real number
10 | Positive infinity (POSITIVE_INF)
11 | Unsigned infinity (UNSIGNED_INF)

Note: This table was wrong in the documentation of TIGCCLIB release 1.5: negative and unsigned infinity was swapped due a to typing error.

Uses: is_nan, _bcd_math
Used by: did_push_anti_deriv, push_1st_derivative, push_csolve, push_czeros, push_def_int, push_desolve, push_lim, push_max, push_min, push_nsolve, push_solve, push_zeros, push_equals, push_greater_than, push_greater_than_or_equals, push_less_than, push_less_than_or_equals, push_not_equals, push_sum, push_Float_to_rat, get_ub, push_gcd_then_cofactors, push_standardize