[Bug libstdc++/59421] New: stof(), stod() wrong result
++ Assignee: unassigned at gcc dot gnu.org Reporter: stefan.helm...@t-online.de sometimes: y = stod(str); // with str = "0" cout << y << endl; prints out: 0.4167 It depends on where the executable is copied to. It does not depend on optimisation level. I use c++11.
[Bug libstdc++/59421] stof(), stod() wrong result
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59421 --- Comment #3 from Stefan Helmert --- OK, please try this code: https://github.com/TheTesla/DigiKeyCSV2KiCadSCHpatcher/tree/gcctest The relevant function is norm_value().