openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.95k stars 528 forks source link

toFixed should return float #105

Closed mryellow closed 9 years ago

mryellow commented 9 years ago

Currently returning a 'string'. This means that any + operator applied to this "fixed precision number" results in a string concatenation instead of the expected addition.

edit: or not.... is more flexible if I just parse it after to however it is needed.