SimpCfg:Show floating point values in normal and exponential form

This commit is contained in:
HanishKVC 2024-04-28 23:44:33 +05:30
parent 4181164217
commit a6648b02f2
2 changed files with 3 additions and 2 deletions

View file

@ -94,7 +94,7 @@ public:
void set_double(const std::string &group, const std::string &key, double value) {
auto &gm = mapDoubles[group];
gm[key] = value;
LDBUG_LN("DBUG:SC:%s:%s:%s:%f", __func__, group.c_str(), key.c_str(), value);
LDBUG_LN("DBUG:SC:%s:%s:%s:%f[%e]", __func__, group.c_str(), key.c_str(), value, value);
}
void set_double(const std::string &group, const std::string &key, std::string &value) {

View file

@ -228,5 +228,6 @@
"sint": -9876543210
"float": 12.34
"double1": +12.0e-123
"double2": -12.0e-123
"double2": -12.0e-123678
"double3": -12.0e300