Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: .5 against 0.5f Date: Wed, 28 Oct 2026 07:49:27 -0700 Organization: A noiseless patient Spider Lines: 19 Message-ID: <86pkwtnamg.fsf@linuxsc.com> References: <11bpvs7$1e6kc$2@dont-email.me> <11bqnvh$1np7s$1@dont-email.me> <11br5td$1to7l$1@dont-email.me> <11br792$1u7e5$1@dont-email.me> <11brgqf$21170$2@dont-email.me> <11bsvlm$2jn3$1@news.gegeweb.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Wed, 28 Oct 2026 14:49:30 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2641216"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gfXL1hv4vAOkCAXcrF5AOqm3mTXxH2p4="; posting-host="863330b5bd13e85d720b0575444f578b" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:lTtioDYnbATlfp3VWExPe89IH8w= sha1:pk/Yc01nWtIq4bZUmogpI4JszDg= sha256:lyBo3kiC24ABIy5KJT13X74t1TLrasTEZSCsvgNSviw= sha1:Nees8Ughc5cBlYiAy2BNjPf2Qlw= sha256:nC0opIO+jtxJDkKFXWvWxi0P/793a4BGeFYVwHXdHCY= Xref: csiph.com comp.lang.c:403715 tTh writes: > On 10/28/26 01:49, Lawrence D?Oliveiro wrote: > >> On Tue, 27 Oct 2026 18:06:25 -0400, James Kuyper wrote: >> >>> However, if you need double precision, you shouldn't be using the >>> "f" suffix. >> >> Is there any situation where you *should* use the ?f? suffix? >> >> I am thinking: no. > > Explicit is better than implicit ? Not always, but in this case there is no "implicit" way. If a floating-point constant has an "f" suffix it's of type float, and if it doesn't it's of type double. Having a suffix necessarily changes the meaning.