Function Updated 30 May 2026
Math.ceil(value)
Always rounds a number upwards.
Parameters
valuenumberrequiredValue to ceil.
Returns
A number that is rounded against ceiling.
Example
Mixed HTML (or any text file) with inline JavaScript between hash signs.
This becomes 1:
#Math.ceil(0.1)#The template above produces this output:
This becomes 1:
1