Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js arrotondare superiore numero

 function ceilTo(value, places){
     var power = Math.pow(10, places);
     return Math.ceil(value * power) / power;
 }
 function floorTo(value, places){
     var power = Math.pow(10, places);
     return Math.floor(value * power) / power;
 }
Source by riptutorial.com #
 
PREVIOUS NEXT
Tagged: #js #arrotondare #superiore #numero
ADD COMMENT
Topic
Name
6+8 =