round to top javascript code example
Example 1: javascript ceiling
var ceiling1 = Math.ceil(4.7); //5
var ceiling2 = Math.ceil(-3.4); //-3
Example 2: js ceil
Math.ceil(1.2);
// 2
var ceiling1 = Math.ceil(4.7); //5
var ceiling2 = Math.ceil(-3.4); //-3
Math.ceil(1.2);
// 2