incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick North <nort...@gmail.com>
Subject Re: decimal and builtin _sum function
Date Fri, 15 Nov 2013 16:56:01 GMT
On 15 November 2013 16:28, Mark Hahn <mark@reevuit.com> wrote:

> > I store the numbers as strings because I read this the proper way for
> decimals.
>
> Where did you read this?  That makes no sense.
>
>
If your numbers are going to pass through JSON and JavaScript, then I'd say
it's reasonable. There are sufficient unknowns with JSON parsers and
serialisers and processing engines along the way that storage as strings
feels the safest thing to do.

Nick

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