Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Adjusting printf() rounding Date: Sat, 09 Apr 2022 13:05:55 -0700 Organization: None to speak of Lines: 19 Message-ID: <87ilrinhss.fsf@nosuchdomain.example.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="c0d2b838e6ab8eb2dc4ddea0fc73913b"; logging-data="28228"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jDFCH26zLD4nQ2j07MHlO" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:WRCHQUnEQpCFhu1WZVJgcHbG6ME= sha1:kjN5E6J/XfQ4ldedsMH6QQJ973E= Xref: csiph.com comp.lang.c++:83550 Marcel Mueller writes: > Am 08.04.22 um 22:44 schrieb Paavo Helde: >> Yes, you are right, it looks like Windows/MSVC is in principle also >> switching over to Banker's Rounding, but it seems there are some >> combinations of OS and the MSVC compiler where this has not yet >> happened. > > The OS is probably not significant. The related code should be in in > the C runtime, i.e. msvcrt*.dll. So basically it depends on the MSVC > version. msvcrt.dll is used only by old versions of Microsoft Visual C++, from 4.2 to 6.0. More modern versions of MS Visual Studio use different DLLs. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */