Skip to content

Commit

Permalink
Base: use std::numeric_limits<double>::max_digits10 for stream precision
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Sep 26, 2021
1 parent b059f67 commit 74f6710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base/Stream.cpp
Expand Up @@ -48,7 +48,7 @@ OutputStream::OutputStream(std::ostream &rout, bool binary)
: _out(rout), _binary(binary)
{
if(!_binary)
_out << std::setprecision(std::numeric_limits<float>::digits10 + 1);
_out << std::setprecision(std::numeric_limits<double>::max_digits10);
}

OutputStream& OutputStream::operator << (const char *s) {
Expand Down

0 comments on commit 74f6710

Please sign in to comment.