Re:Parsing floats in C++: benchmarking strtod vs. from_chars
by SAI_Peregrinus on Thursday September 10, 2020 @06:30PM
(#24437228)
The first example is incomplete: it forgets to clear and then check errno and/or check the returned value to +-HUGE_VAL! That'd probably slow down the strtod version a bit more.
[ Parent
| on HN ]