SimpCfg:Show floating point values in normal and exponential form
This commit is contained in:
parent
4181164217
commit
a6648b02f2
2 changed files with 3 additions and 2 deletions
|
@ -94,7 +94,7 @@ public:
|
||||||
void set_double(const std::string &group, const std::string &key, double value) {
|
void set_double(const std::string &group, const std::string &key, double value) {
|
||||||
auto &gm = mapDoubles[group];
|
auto &gm = mapDoubles[group];
|
||||||
gm[key] = value;
|
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) {
|
void set_double(const std::string &group, const std::string &key, std::string &value) {
|
||||||
|
|
|
@ -228,5 +228,6 @@
|
||||||
"sint": -9876543210
|
"sint": -9876543210
|
||||||
"float": 12.34
|
"float": 12.34
|
||||||
"double1": +12.0e-123
|
"double1": +12.0e-123
|
||||||
"double2": -12.0e-123
|
"double2": -12.0e-123678
|
||||||
|
"double3": -12.0e300
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue