Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

floor and ceil in cpp

floor(x) : Returns the largest integer that is smaller than or equal to x (i.e : rounds downs the nearest integer).
 ceil(x) : Returns the smallest integer that is greater than or equal to x (i.e : rounds up the nearest integer).
 
PREVIOUS NEXT
Tagged: #floor #ceil #cpp
ADD COMMENT
Topic
Name
6+3 =