fast_float icon indicating copy to clipboard operation
fast_float copied to clipboard

Add the following corner cases to our tests

Open lemire opened this issue 2 years ago • 0 comments

The library is already correct on these cases, but we should be explicit.

Contributed by @deadalnix

1/ Where float stop rounding to 0.
0.7006492321624085354e-45
0.7006492321624085355e-45
2/ Where float start going to infinity:
0.3402823567797336616e39
0.3402823567797336617e39
3/ Where double stop rounding to 0:
0.2470328229206232720e-323
0.2470328229206232721e-323
4/ Where double go to infinity:
1.7976931348623158079e308
1.7976931348623158080e308
5/ Where float become normal:
1.1754942807573642917e-38
1.1754942807573642918e-38
6/ Where double become normal:
0.2225073858507201136e-307
0.2225073858507201137e-307

lemire avatar Jan 10 '23 21:01 lemire