🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1159

Re: .5 against 0.5f

#1159
From: chine.bleu
Date: Fri, 30 Oct 2026 09:39
13 lines
2058 bytes
Janis Papanagnou wrote:
> Would there be a problem with fixed-point arithmetic (that internally
> uses a few more than just two decimals for rounding etc.) but that is
> using basically a fixed-point representation?
You could make a library for rational numbers (two integers) arithmetic 
where the denominator is a power of ten. If the CPU has decimal 
arithmetic, implement it in assembly.

-- 
Siri Seal of Disavowal #777-000. Disavowed. Denied.  @
NO KINGS    For I desire mercy not sacrifice.       /|\
The Church of the Holey Apple .signature 5.5        / \
of Discordian Mysteries. This post insults Islam. Mohamed
Technical Details
Message-ID: <11c1ok8$469v$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> <Ue6ES.2265$y_V1.1859@fx12.iad> <11bv5o7$37qph$1@dont-email.me> <11c0plh$3s02c$1@dont-email.me> <11c14qg$2t866$7@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: "chine.bleu" <chine.bleu@yahoo.com>
Newsgroups: comp.lang.c
Subject: Re: .5 against 0.5f
Date: Fri, 30 Oct 2026 02:39:20 -0700
Organization: semi-chaotic
Lines: 13
Message-ID: <11c1ok8$469v$1@dont-email.me>
References: <11bpvs7$1e6kc$2@dont-email.me> <11bqnvh$1np7s$1@dont-email.me> <Ue6ES.2265$y_V1.1859@fx12.iad> <11bv5o7$37qph$1@dont-email.me> <11c0plh$3s02c$1@dont-email.me> <11c14qg$2t866$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Oct 2026 09:39:21 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="137535"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19tte0WJclcwX0FJEYujg6CPqK6EE/c5SM="; posting-host="34d7a7ab3ac8f4f79c89b8189a30ffba"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29.1
Cancel-Lock: sha1:3lvQz/Wk78SnZiuhu2J3UJ/U2eI= sha256:FJS6FnME8dqJMutR1neY+u2qQ2YaOYvc7Q6o9V+dEXY=
	sha1:XqX8jOXJyotXAZhnNIYtd4iNDYM= sha256:+MhBg9P4gh1C7zhwxfKFYoxt8b/K3hlLp7wlCcpLl2A=
In-Reply-To: <11c14qg$2t866$7@dont-email.me>