incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: Fixed precision of floating point number not respected in views
Date Tue, 19 Feb 2013 11:03:45 GMT
On Tue, Feb 19, 2013 at 11:56 AM, Paul Davis
<paul.joseph.davis@gmail.com> wrote:
> Assuming this is the EDN spec thing:
>
> https://github.com/edn-format/edn
>
> Then, no, this won't solve anything related to this discussion.

It will somehow since you need to define the number expecation.

floating point numbers

64-bit (double) precision is expected.

floating-point-number
  int M
  int frac
  int exp
  int frac exp
int
  digit
  1-9 digits
  + digit
  + 1-9 digits
  - digit
  - 1-9 digits
frac
  . digits
exp
  ex digits
digits
  digit
  digit digits
ex
  e
  e+
  e-
  E
  E+
  E-


So the spec force you to store the number in a format which isn't the
case of JSON which slightly better and make sure that allows the
library will get the same result.

- benoit

Mime
View raw message