aboutsummaryrefslogtreecommitdiff
path: root/budget/static/js/ihatemoney.js
diff options
context:
space:
mode:
authorBaptiste Jonglez <git@bitsofnetworks.org>2017-01-02 14:55:48 +0100
committerBaptiste Jonglez <git@bitsofnetworks.org>2017-01-03 21:37:19 +0100
commitd6cf89008fdb5e40395d3ccc879db2255f13e461 (patch)
treee38797044f50d1f5398857a85cd9bf9ab3ab0762 /budget/static/js/ihatemoney.js
parentb507a5afa1b4e3594a3a35f3aae08f7f38989338 (diff)
downloadihatemoney-mirror-d6cf89008fdb5e40395d3ccc879db2255f13e461.zip
ihatemoney-mirror-d6cf89008fdb5e40395d3ccc879db2255f13e461.tar.gz
ihatemoney-mirror-d6cf89008fdb5e40395d3ccc879db2255f13e461.tar.bz2
Workaround rounding issues when displaying balance of users
A user with a "0.00" balance would have either a "+0.00" in green or a "-0.00" in red, depending on the exact value of the floating-point value. Fix this by simply rounding to 2 digits before comparing to zero.
Diffstat (limited to 'budget/static/js/ihatemoney.js')
0 files changed, 0 insertions, 0 deletions