msvcrt:scanf float conversion behavior

Piotr Caban piotr.caban at
Fri Dec 27 11:51:11 CST 2019

On 12/27/19 6:13 PM, Erich E. Hoover wrote:
> I don't see this test, so I popped it in really quick and I'm getting 1 
> ulp with the patch (4 without).
I've copied part of the test strings only, sorry for that:
4.0621786324484881721115322e-53 (this one has problems in current wine)
1.5475148155234508405655166e-252 (this one has problems with the scanf 
patch you have attached)

I'm currently in the middle of testing a different approach to solving 
that so I can't easily run the tests now. For the "4.06..." test I'm 
getting following failure:
got 4.0621786324484868e-053, expected 4.0621786324484882e-053 (diff -3)
where the first number is what Wine's strtod implementation returned and 
second one is how compiler parses the number during compilation.


More information about the wine-devel mailing list