https://bugs.winehq.org/show_bug.cgi?id=37913
--- Comment #3 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to Piotr Caban from comment #2)
The bug should be already fixed. Please retest in wine 5.15 (it works for me with current wine, I didn't check when it was fixed exactly but I'm expecting that it was already working correctly in wine-5.14). Please also note that the output on windows changed when newest ucrtbase is used.
Gijss-MacBook-Pro:Desktop gverm$ x86_64-w64-mingw32-g++ -static sprintf.cpp Gijss-MacBook-Pro:Desktop gverm$ $WINE a.exe 3.5 is 4 -4.5 is -4 -0.5 is -0 2597.625 is 2597.62
These are the steps I used and result I got with wine-5.15. If this is the expected result, this bug can be resolved.