This commit is contained in:
Mirek Fidler 2021-09-11 11:43:35 +02:00
parent e52cead22b
commit a7902e26a0

View file

@ -14,10 +14,11 @@ CONSOLE_APP_MAIN
memcpy(&x, &n, 8); memcpy(&x, &n, 8);
if(std::isfinite(x)) { if(std::isfinite(x)) {
count++; count++;
double y = ScanDouble(FormatDouble(x)); double y = ScanDouble(FormatG(x, 17));
if(x != y) { if(x != y) {
RLOG("ERROR"); RLOG("ERROR");
RDUMP(Sprintf("%.30g", x)); RDUMP(Sprintf("%.30g", x));
RDUMP(Sprintf("%.30g", y));
RDUMP(x); RDUMP(x);
RDUMP(y); RDUMP(y);
RDUMP(count); RDUMP(count);