Make sure typeof value=="number" before calling value.toFixed

In some cases ng-model may initially contain a string value, in this case `"0.00".toFixed(2)` will raise "TypeError: undefined is not a function".