🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #929

Re: .5 against 0.5f

#929
From: David Brown
Date: Wed, 28 Oct 2026 07:39
18 lines
1947 bytes
On 28/10/2026 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.

Try thinking harder.

I use the "f" suffix all the time in my code, because I do not want 
double precision.  In many situations, single precision arithmetic is at 
least twice as fast as double precision - in some situations it can be 
two orders of magnitude faster.

Technical Details
Message-ID: <11bs8rb$26dq0$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-mail
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>

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: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: .5 against 0.5f
Date: Wed, 28 Oct 2026 08:39:23 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <11bs8rb$26dq0$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; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Oct 2026 07:39:24 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2307904"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+iC5HSK1kUaZJeRJQmMfkHKWDADaVXN1g="; posting-host="7742015709800b6389fefe24fb6a2b50"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/Lo6VmyrYrvotLrkSwzlr4xFeg0= sha256:Nltd4gdU2EyzV48NU7FLjGptZyw9a3j4uAy0KYoLoKE=
	sha1:a/4F70deo3yAoZk8HWEpFBB5N2E= sha256:f8EzkoQDKrgtk+c0bSizUHpNGgN0MVGno0HwjJU+VKc=
In-Reply-To: <11brgqf$21170$2@dont-email.me>
Content-Language: en-GB, nb-NO