Closed GoogleCodeExporter closed 8 years ago
You can find an implementation of this functionality in a pull-request in my
personal fork at GitHub, see https://github.com/pah/rapidjson/pull/3
In addition to explicitly specifying a precision with each writer.Double()
call, you can tell the Writer classes to use a user-defined precision via
writer.SetDoublePrecision(...);
This proposal does not address the todo to provide an optimization with a
custom double-to-string converter. Neither does it provide a way to switch
from a %g to a %f format string behaviour.
Pull-request: https://github.com/pah/rapidjson/pull/3
Latest patch: https://github.com/pah/rapidjson/pull/3.patch
Original comment by philipp....@gmail.com
on 2 Apr 2014 at 4:09
Original comment by milo...@gmail.com
on 26 Jun 2014 at 2:44
Original issue reported on code.google.com by
ron....@gmail.com
on 23 Apr 2013 at 3:22