English
Language : 

CC78K0S Datasheet, PDF (291/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
7-42 ceilf (normal model only)
Mathematical Functions
FUNCTION
ceilf finds the minimum integer no less than x.
HEADER
math.h
FUNCTION PROTOTYPE
float ceilf (float x) ;
Function
ceilf
Arguments
x ... Numeric value on which
operation is performed
Return Value
Normal ... The minimum
integer no less than x
When x is non-numeric or x =
±∞ ... NaN
When x = –0 ... +0
When the minimum integer no
less than x cannot be
expressed ... x
EXPLANATION
• Finds the minimum integer no less 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 minimum integer no less than x cannot be expressed, x is returned.
User’s Manual U14872EJ1V0UM
291