javascript 2 decimal float array elements

JavaScript
var x = 0;
var len = my_array.length
while(x < len){ 
    my_array[x] = my_array[x].toFixed(2); 
    x++
}
Source

Also in JavaScript: