|
CC78K4 Datasheet, PDF (251/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language | |||
|
◁ |
CHAPTER 10 LIBRARY FUNCTIONS
7-19 ceil
Mathematical Function
FUNCTION
ceil finds the minimum integer no less than x.
HEADER
math.h
FUNCTION PROTOTYPE
double ceil (double x);
Function
ceil
Arguments
x ... Numeric value to perform
operation
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 U15556EJ1V0UM
251
|
▷ |