diff options
| author | Baptiste Jonglez <git@bitsofnetworks.org> | 2017-01-02 14:55:48 +0100 |
|---|---|---|
| committer | Baptiste Jonglez <git@bitsofnetworks.org> | 2017-01-03 21:37:19 +0100 |
| commit | d6cf89008fdb5e40395d3ccc879db2255f13e461 (patch) | |
| tree | e38797044f50d1f5398857a85cd9bf9ab3ab0762 /docs/Makefile | |
| parent | b507a5afa1b4e3594a3a35f3aae08f7f38989338 (diff) | |
| download | ihatemoney-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 'docs/Makefile')
0 files changed, 0 insertions, 0 deletions
