English
Language : 

CC78K0S Datasheet, PDF (269/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
7-20 fabs (normal model only)
Mathematical Functions
FUNCTION
fabs returns the absolute value of the floating-point number x .
HEADER
math.h
FUNCTION PROTOTYPE
double fabs (double x) ;
Function
fabs
Arguments
x ... Numeric value to find the
absolute value
Return Value
Normal ... Absolute value of x
When x is non-numeric ...
NaN
When x = –0 ... +0
EXPLANATION
• Finds the absolute value of x.
• If x is non-numeric, NaN is returned.
• If x is –0, +0 is returned.
User’s Manual U14872EJ1V0UM
269