Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

Rounding and remainder functions
[Math Library]


Functions

double ceil (double x)
 Round up value. Rounds x upward, returning the smallest integral value that is not less than x.
double floor (double x)
 Round down value. Rounds x downward, returning the largest integral value that is not greater than x.

Function Documentation

double ceil double  x  ) 
 

Parameters:
x Value to round up.
Returns:
The smallest integral value that is not less than x (as a floating-point value).

double floor double  x  ) 
 

Parameters:
x Value to round down.
Returns:
The value of x rounded downward (as a floating-point value).
footer

otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0