Answers for "java ceil"

0

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
Posted by: Guest on April-24-2021
-1

ceil function in java

import java.lang.Math;
Math.ceil(a);
Posted by: Guest on June-26-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language