Article View: comp.lang.c
Article #905Re: .5 against 0.5f
From: James Kuyper
Date: Wed, 28 Oct 2026 01:41
Date: Wed, 28 Oct 2026 01:41
18 lines
2082 bytes
2082 bytes
On 2026-10-27 20: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. I've used systems where float was significantly faster than double, I wouldn't be surprised if someone claimed that this no longer the case on any modern machine, but I would be surprised if they had done a sufficiently careful search to justify being certain about that. I've seen applications where the lower precision of float was acceptable, and the extra speed of float was essential to meeting speed requirements.
Technical Details
Message-ID:
<11brjrn$21vfh$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: James Kuyper <jameskuyper@alumni.caltech.edu> Newsgroups: comp.lang.c Subject: Re: .5 against 0.5f Date: Tue, 27 Oct 2026 21:41:10 -0400 Organization: A noiseless patient Spider Lines: 18 Message-ID: <11brjrn$21vfh$1@dont-email.me> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 28 Oct 2026 01:41:12 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2162161"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hiUpbynnhuGFTSTpZPzxUIP9B0FBeqQI="; posting-host="be7d11f9ed1c07f50d9d5deefef02134" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:fDhlxAU1n0C/gsikcQNwzAyqZ8U= sha256:1faCojZyaDDf42RvhxBdxOpMPfF9pruHbf/uUuFlZJs= sha1:E11/vKXHhMBTKMkE2BsmZZuS4yg= sha256:QclLJYToyKpkGk85a7Wv/Qc2FMQ9Tqyq1tZ8kXShmsg= Content-Language: en-US In-Reply-To: <11brgqf$21170$2@dont-email.me>