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:

1Not_a_Number (NAN)
2Negative infinity (NEGATIVE_INF)
3Negative real number
5Negative zero (NEGATIVE_ZERO)
6Unsigned zero (ZERO)
7Positive zero (POSITIVE_ZERO)
9Positive real number
10Positive infinity (POSITIVE_INF)
11Unsigned 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