mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-22 10:25:47 +01:00
forward precision to stringstream
This commit is contained in:
parent
7faf207d06
commit
c3aecc6831
@ -143,7 +143,7 @@ std::string valueToString(double value, bool useSpecialFloats, unsigned int prec
|
||||
int len = -1;
|
||||
|
||||
std::stringstream value_ss;
|
||||
value_ss << std::setprecision( 17 ) << value;
|
||||
value_ss << std::setprecision( precision ) << value;
|
||||
std::string value_str = value_ss.str();
|
||||
|
||||
// Print into the buffer. We need not request the alternative representation
|
||||
|
Loading…
x
Reference in New Issue
Block a user