Comment on Strtod Is WildparentComments−nly2yParsing decimal strings to double in that way will produce the wrong bit value in many cases.−Neywiny2yI just needed simple values. It worked fine for me. I should've fuzzed it to check, but really I think all I needed was 1-2 decimal places.−yjftsjthsd-h1yIf it's only 2 decimals, surely you could trivially test every single possible input? I think of fuzzing as random, but that's a specific optimization that you might not need.−Neywiny1yI very much could have if I cared, yes. I really right then end up using the code at the end of the day, so it doesn't matter
Comments
Parsing decimal strings to double in that way will produce the wrong bit value in many cases.
I just needed simple values. It worked fine for me. I should've fuzzed it to check, but really I think all I needed was 1-2 decimal places.
If it's only 2 decimals, surely you could trivially test every single possible input? I think of fuzzing as random, but that's a specific optimization that you might not need.
I very much could have if I cared, yes. I really right then end up using the code at the end of the day, so it doesn't matter