.toFixed not for .0*
.toFixed(x) returns a string. Just parse it as a float again: return parseFloat(val.toFixed(2)); http://jsfiddle.net/mblase75/y5nEu/1/
.toFixed(x) returns a string. Just parse it as a float again: return parseFloat(val.toFixed(2)); http://jsfiddle.net/mblase75/y5nEu/1/