Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

Other functions
[Math Library]


Functions

int __IsNan (double d)
 Is Not-A-Number. Returns whether x is a NaN (Not-A-Number) value. The NaN values are used to identify undefined or non-representable values for floating-point elements, such as the square root of negative numbers or the result of 0/0.
double sign (double x)
 Returns a value indicating the sign of a double-precision floating-point number.
double fabs (double x)
 Returns the absolute value of x: |x|.
int signbit (double x)
 Sign bit. Returns whether the sign of x is negative.
int isfinite (double x)
 Is finite value. Returns whether x is a finite value.
A finite value is any floating-point value that is neither infinite nor NaN (Not-A-Number).
int isnan (double x)
 Is Not-A-Number. Returns whether x is a NaN (Not-A-Number) value.
The NaN values are used to identify undefined or non-representable values for floating-point elements, such as the square root of negative numbers or the result of 0/0.
int isinf (double x)
 Is infinity. Returns whether x is an infinity value (either positive infinity or negative infinity).

Function Documentation

int __IsNan double  d  ) 
 

Parameters:
d A floating-point value.
Returns:
A non-zero value (true) if x is a NaN value; and zero (false) otherwise.

double fabs double  x  ) 
 

Parameters:
x Value whose absolute value is returned.
Returns:
The absolute value of x.

int isfinite double  x  ) 
 

Parameters:
x A floating-point value.
Returns:
A non-zero value (true) if x is finite; and zero (false) otherwise.

int isinf double  x  ) 
 

Parameters:
x A floating-point value.
Returns:
A non-zero value (true) if x is an infinity; and zero (false) otherwise.

int isnan double  x  ) 
 

Parameters:
x A floating-point value.
Returns:
A non-zero value (true) if x is a NaN value; and zero (false) otherwise.

double sign double  x  ) 
 

Parameters:
x Floating point value.
Returns:
A number that indicates the sign of value: -1 if x < 0, 0 if x == 0, 1 if x > 0

int signbit double  x  ) 
 

Parameters:
x A floating-point value.
Returns:
A non-zero value (true) if the sign of x is negative; and zero (false) otherwise.
footer

otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0