Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js arrotondare superiore numero

Math.trunc(2.3);                // 2 (floor)
Math.trunc(-2.3);               // -2 (ceil)
Math.trunc(2147483648.1);       // 2147483648 (floor)
Math.trunc(-2147483649.1);      // -2147483649 (ceil)
Math.trunc(NaN);                // NaN
Source by riptutorial.com #
 
PREVIOUS NEXT
Tagged: #js #arrotondare #superiore #numero
ADD COMMENT
Topic
Name
9+9 =