| ▲ | CamperBob2 5 hours ago | ||||||||||||||||
This has the benefit of handling scientific notation, too, which some of the other CRTL functions inexplicably do not.For extra reassurance, initialize foo to NaN or DBL_MAX or something, and verify that it is no longer equal to that value. | |||||||||||||||||
| ▲ | lelanthran 4 hours ago | parent | next [-] | ||||||||||||||||
That doesn't detect overflows and underflows. Also changes based on locale, which is not thread safe (so you cannot set locale, convert, then unset locale). | |||||||||||||||||
| |||||||||||||||||
| ▲ | shakna 5 hours ago | parent | prev [-] | ||||||||||||||||
sscanf has locale things that make it include implementation-defined behaviour, doesn't it? | |||||||||||||||||
| |||||||||||||||||