-
-
Notifications
You must be signed in to change notification settings - Fork 18
ceil
drewmccluskey edited this page Jan 9, 2019
·
3 revisions
This function will everytime round up.
ceil(val)
Argument | Description |
---|---|
double val |
The value to round up |
Returns: int
This function will round the input double up, it is similar to round();
but will instead always round up.
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.
Back to number_functions