RE: sprintf weirdness
"Andras Balogh" <[email protected]>
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
> Can you verify that the control word generated by your crt0 is IDENTICAL > to > the one generated by the standard crt? All bets are that's not the case. Yes, I've called _control87(0, 0) right before printf on both a standard app, and mine, and they returned the same result.. > sprintf() works under a number of assumptions about the state of the > run-time. I believe the source code is available, so you can check which > assumptions are those, and whether you comply with them or not. Yeah, the source code is available, but it uses the magic _cfltcvt, for which I have nothing... The funny thing is, that when the number is exactly 0, it prints "0.000" It only fails, when 0 < abs(x) < 0.1 Thanks, Andras ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Gamedevlists-windows mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555