couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Klein <st.fankl...@gmail.com>
Subject Re: decimal and builtin _sum function
Date Fri, 15 Nov 2013 09:55:00 GMT
2013/11/15 Pedro Narciso García Revington <p.revington@gmail.com>

>
> I removed the quotes from the numbers. Now I can sum them but 0.2 + 0.1
> equals to 2.99999999
>

I would use integer and store cents or tenth of cents (whatever
accurateness you need). And handle the conversion to $ or € on display.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message