Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript 2 decimal float array elements

var x = 0;
var len = my_array.length
while(x < len){ 
    my_array[x] = my_array[x].toFixed(2); 
    x++
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #decimal #float #array #elements
ADD COMMENT
Topic
Name
9+3 =