🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1152

Re: .5 against 0.5f

#1152
From: Keith Thompson
Date: Fri, 30 Oct 2026 04:17
16 lines
1928 bytes
Lawrence D’Oliveiro <ldo@nz.invalid> writes:
[...]
> How would you do calculations involving compound interest payments
> without floating-point arithmetic?

Because you'd want to follow the standards for financial calculations,
which are likely to require some kind of fixed-point.

>                                    And why would you want to?

To obtain the exact results required by the relevant financial
regulations, and to avoid accusations of malfeasance.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Technical Details
Message-ID: <11c15o9$3uh8t$2@kst.eternal-september.org>
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!kst.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>

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!kst.eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: .5 against 0.5f
Date: Thu, 29 Oct 2026 21:17:13 -0700
Organization: None to speak of
Lines: 16
Message-ID: <11c15o9$3uh8t$2@kst.eternal-september.org>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 30 Oct 2026 04:17:14 +0000 (UTC)
Injection-Info: kst.eternal-september.org;
	logging-data="4146461"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/whaCslQ7KgTSivjh6FZDj"; posting-host="b68af1aa9e7aa641ae7946e50ae9a9d4"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:n8DrVrupnnK/ha46/ybjViB81aA= sha256:OZ4KhVJT2kx3JCD+XZ+UWPXNgEmeka89qn/tqz3ZTo8=
	sha1:JAF/HWmQXS+B5tudRZAn72DjqTc= sha256:vXB88CQ1qK58/AFgl4X0BJTPQocv+bCDyJIj+GWsQgY=