Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ceil function js but 1.1 as 2

var value = 0.04;
var output = value == parseInt(value) ? value : parseInt(value+1);
console.log(output); // 1
 
PREVIOUS NEXT
Tagged: #ceil #function #js
ADD COMMENT
Topic
Name
9+7 =