Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Math.ceil node js

console.log(Math.ceil(.95));
// expected output: 1

console.log(Math.ceil(4));
// expected output: 4

console.log(Math.ceil(7.004));
// expected output: 8

console.log(Math.ceil(-7.004));
// expected output: -7
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #node #js
ADD COMMENT
Topic
Name
3+5 =