Article View: comp.lang.c
Article #1141Re: .5 against 0.5f
From: Lawrence D’Oliveiro
Date: Fri, 30 Oct 2026 00:50
Date: Fri, 30 Oct 2026 00:50
14 lines
1820 bytes
1820 bytes
On Thu, 29 Oct 2026 18:04:52 +0800, makendo wrote:
> I envy in particular the Japanese on this -- they don't have
> monetary units smaller than 1 yen, and as such misuse of floats in
> monetary calculations are far less likely in Japan.
1 yen = 100 sen = 1000 rin
“The sen and the rin were eventually taken out of circulation at
the end of 1953”
-- <https://en.wikipedia.org/wiki/Japanese_yen>
How would you do calculations involving compound interest payments
without floating-point arithmetic? And why would you want to?
Technical Details
Message-ID:
<11c0plh$3s02c$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-mailReferences:
<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>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: Lawrence D’Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.c Subject: Re: .5 against 0.5f Date: Fri, 30 Oct 2026 00:50:57 -0000 (UTC) Organization: A noiseless patient Spider Lines: 14 Message-ID: <11c0plh$3s02c$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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 30 Oct 2026 00:50:58 +0000 (UTC) Injection-Info: dont-email.me; logging-data="4063308"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jLtvKVYyprDdAZiF+SGxc"; posting-host="a2d4bf737ef4dcecc3ecbe7a7a4a744c" User-Agent: Pan/0.165 (Kostiantynivka) Cancel-Lock: sha1:LoRDl/vNV6gI/AqbWuF31giotWw= sha256:fucmRBv8Cwa0wzoIDx/9CwLmWaybV8E4W9p/Dvny9iY= sha1:Xz2jLgKxvWG9mT2BrjuQhCeFyYk= sha256:eNP1oAkk0oa++KnQlgIpsRHbnI302eL5u87CArRkErI=