This function will everytime round up.
ceil(val)
double
Returns: int
int
This function will round the input double up, it is similar to round(); but will instead always round up.
round();
double numberToRoundUp = 5.1111; var RoundedNumberUp = ceil(numberToRoundUp); //return 6
This code will round up and assign double numberToRoundUp with value 5.1111 to var RoundedNumberUp with a resulting value of 6.
var
Back to number_functions
There was an error while loading. Please reload this page.