Jirapat Jirasirikul created AVRO-1868:
-----------------------------------------
Summary: Increase precision digits of JSON encodeNumber(double)
Key: AVRO-1868
URL: https://issues.apache.org/jira/browse/AVRO-1868
Project: Avro
Issue Type: Improvement
Components: c++
Reporter: Jirapat Jirasirikul
Priority: Minor
The JSON encodeNumber(double) function writes value to output string stream.
The default precision is 6 which is not sufficient for many applications for
encoding a double.
std::setprecision(16) should be used to set max precision to 16 digits. Note
that doing this would not unnecessarily append zeros to force 16 digits.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)