English
Language : 

CC78K0S Datasheet, PDF (270/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
7-21 floor (normal model only)
Mathematical Functions
FUNCTION
floor finds the maximum integer no more than x.
HEADER
math.h
FUNCTION PROTOTYPE
double floor (double x) ;
Function
floor
Arguments
x ... Numeric value on which
operation is performed
Return Value
Normal ... The maximum
integer no more than x
When x is non-numeric or x =
±∞ ... NaN
When x = –0 ... +0
When the maximum integer
no more than x cannot be
expressed
EXPLANATION
• Finds the maximum integer no more than x.
• If x is non-numeric, NaN is returned.
• If x is –0, +0 is returned.
• If x is infinite, NaN is returned and EDOM is set to errno.
• If the maximum integer no more than x cannot be expressed, x is returned.
270
User’s Manual U14872EJ1V0UM