🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #877

Re: .5 against 0.5f

#877
From: Chris M. Thomasson
Date: Tue, 27 Oct 2026 20:10
38 lines
2848 bytes
On 10/27/2026 12:54 PM, Steven G. Kargl wrote:
> On Tue, 27 Oct 2026 20:15:20 +0100, fir wrote:
> 
>> Steven G. Kargl pisze:
>>> On Tue, 27 Oct 2026 18:50:09 +0100, fir wrote:
>>>
>>>> Steven G. Kargl pisze:
>>>>> On Tue, 27 Oct 2026 11:53:55 +0100, fir wrote:
> 
> (snip)
> 
>>>> but the question is: can using .1 instead of 0.1f make me any harm in
>>>> code? like things get slower in runtime? (assuming i use floats in
>>>> code not doubles, and the code is a bit time critical like
>>>> rasterisation goes on floats)  why the ai so maniacally puts that f?
>>>
>>> Without seeing code and not knowing whether you are concerned with the
>>> propagation of floating point errors, the only answer that one can give
>>> for your first two questions is "yes, no, maybe".
>>>
>>> AI is likely appending the f because you instructed AI to use a float
>>> type.  Why not ask AI why it appends the f?
>>>
>> it says: i add f that the number would be float type instead of double
>>
>> float x=a*1.5;
>>
>> it also says in such above case the multiplication would be in double
>> then converted to float - bout for me its hard to belive
>>
> 
> I do not know where to begin to address the above.  Perhaps,
> find a copy of K&R to read.
> 

Oh, but the ai is his nest of books. Almost like the tommyknockers from 
Stephen King. The residents of Haven started making things that they did 
not understand at all.
Technical Details
Message-ID: <11br0gj$1r6p7$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-mail
References: <11bpvs7$1e6kc$2@dont-email.me> <11bqnvh$1np7s$1@dont-email.me> <11bqo8h$1o2l4$2@dont-email.me> <11bqsef$1pnhi$1@dont-email.me> <11bqt88$1q9r2$1@dont-email.me> <11bqvh3$1qqsr$1@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: Tue, 27 Oct 2026 13:10:58 -0700
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <11br0gj$1r6p7$2@dont-email.me>
References: <11bpvs7$1e6kc$2@dont-email.me> <11bqnvh$1np7s$1@dont-email.me>
 <11bqo8h$1o2l4$2@dont-email.me> <11bqsef$1pnhi$1@dont-email.me>
 <11bqt88$1q9r2$1@dont-email.me> <11bqvh3$1qqsr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 27 Oct 2026 20:11:00 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1940263"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX199Jdyrs2agTOmYipF4G77sJ0vdW8VN6Xk="; posting-host="a6c988641c9f0a5278d89ebf0389e645"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:MT9h+qKRrqi5aQahRGTmssTueJg= sha256:q46ZucvJDrxuGbH+PrLtLnv101LXeYFUnNbB8CDbyHw=
	sha1:5ZAdznse4FsGrtoUB2XwjGwxa+I= sha256:7jxHrHsVmWB1k+whjUQcOgeVU01TGLw94cp1Yyo5CJc=
In-Reply-To: <11bqvh3$1qqsr$1@dont-email.me>
Content-Language: en-US