nits on BigInt Proposal

Bruno Jouhier bjouhier at
Fri Aug 4 15:42:11 UTC 2017

BigDecimal is a MUST for accounting.

Main reasons:

   - JS number precision is too limited (16 digits)
   - Decimal numbers are not represented "exactly" by JS numbers =>
   comparisons gives surprising results (0.1 + 0.2 !== 0.3).
   - Incorrect roundtrips with SQL Databases: decimals have up to 38 digits
   precision in Oracle and SQL Server, 65 (!!) in MySQL.

JSON serialization is addressed by serializing to string. Like dates (no
date literals in JS/JSON).

Same for SQL. In the absence of a BigDecimal type on JS side, values are
passed as strings.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list