Permalink
Browse files

json: Be precise by default.

  • Loading branch information...
unknownbrackets committed Apr 15, 2018
1 parent b658130 commit 2e3021da0cc062e8770839718fa63fb7ac8bcf11
Showing with 2 additions and 0 deletions.
  1. +2 −0 ext/native/json/json_writer.cpp
@@ -6,6 +6,8 @@
JsonWriter::JsonWriter(int flags) {
pretty_ = (flags & PRETTY) != 0;
str_.imbue(std::locale::classic());
// Let's maximize precision by default.
str_.precision(53);
}
JsonWriter::~JsonWriter() {

0 comments on commit 2e3021d

Please sign in to comment.