English
Language : 

CC78K4 Datasheet, PDF (252/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 10 LIBRARY FUNCTIONS
7-20 fabs
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.
252
User’s Manual U15556EJ1V0UM