MicrOS
__math_fpclasify.c File Reference
#include "../math.h"

Functions

int __math_fpclasify (double x)
 Classify floating-point value. More...
 

Function Documentation

◆ __math_fpclasify()

int __math_fpclasify ( double  x)

Classify floating-point value.

Returns a value of type int that matches one of the classification macro constants, depending on the value of x.

Parameters
xThe value to classify.
Returns
One of the followoing int values: FP_INFINITE, FP_NAN, FP_ZERO, FP_SUBNORMAL, FP_NORMAL, FP_WTF.