4 ms·
Parsing decimal strings to double in that way will produce the wrong bit value in many cases.
by nly 2y ago
Parsing decimal strings to double in that way will produce the wrong bit value in many cases.
- Neywiny 2y agoI 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-h 2y agoIf 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.
- Neywiny 2y agoI 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