Math.ceil Math.floor code example
Example 1: js ceil
Math.ceil(1.2);
// 2
Example 2: math ceil floor
//round up to the next highest value
Math.ceil(11.49); //12
//the greatest integer that is less than or equal to x
Math.floor(11.49); //11
Math.ceil(1.2);
// 2
//round up to the next highest value
Math.ceil(11.49); //12
//the greatest integer that is less than or equal to x
Math.floor(11.49); //11