I'm trying to format a float number (lets say 341.75) by setting the decimal point to "1". I tried:
var num = 341.75;
alert(num.toFixed(1)); // output: 341.8
alert(num.toPrecision(1)); // output: 341.8
but what I need is 341.7 ! apparently both methods try to round it, is there a way to do that without rounding ?