Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java ceil

double num = 4.333;

int round_up = Math.ceil(num); //round up
//Console will return: round_up will be 5

int round_down = Math.floor(num); //round down
//Console will return: round_up will be 4
 
PREVIOUS NEXT
Tagged: #java #ceil
ADD COMMENT
Topic
Name
9+4 =