Article View: comp.lang.c
Article #975Re: .5 against 0.5f
From: Chris M. Thomasson
Date: Wed, 28 Oct 2026 21:36
Date: Wed, 28 Oct 2026 21:36
12 lines
1819 bytes
1819 bytes
On 10/27/2026 5:49 PM, 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. Well, say you want the result from a frag shader to be pixel perfect to a CPU version of it. Using double on the CPU can cause a headache.
Technical Details
Message-ID:
<11btptm$2qhsd$2@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: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c Subject: Re: .5 against 0.5f Date: Wed, 28 Oct 2026 14:36:53 -0700 Organization: A noiseless patient Spider Lines: 12 Message-ID: <11btptm$2qhsd$2@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 21:36:54 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2967437"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+F2BUOLKKoqsM1ORudHRoGyi2BAsinpw4="; posting-host="ce22479583babc8631500b8cafa91fe8" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Ae07Zlrkcwq9Fzu1A19qQCGwSqE= sha256:Vs0efTOnU5BFqNu3qLTrzh8KwI54iLOUqa6nx1p0xIc= sha1:oyhKQlwR4uAY6bQpSHaPkPdL1f0= sha256:ekZfmF1LSh6viG2Y0D5ndp/7kqxplOtuuduF0eSW47k= In-Reply-To: <11brgqf$21170$2@dont-email.me> Content-Language: en-US