545 std::ostringstream sout;
548 sout << std::setprecision(-p) << fixed;
550 sout << std::setprecision(p);
552 sout << std::setprecision(f>1e-100 && f<1e100 ? 15 : 14);
556 std::string
str = sout.str();
558 replace(str.begin(), str.end(),
'e',
'E');
560 if (str.find_first_of(
'E')==std::string::npos && str.find_first_of(
'.')==std::string::npos)
563 return Set(key,
true, str, comment);
bool Set(const std::string &key="", bool delim=false, const std::string &value="", const std::string &comment="")