Article View: comp.lang.c
Article #1262Re: .5 against 0.5f
From: Scott Lurndal
Date: Mon, 02 Nov 2026 17:31
Date: Mon, 02 Nov 2026 17:31
17 lines
1494 bytes
1494 bytes
Bonita Montero <Bonita.Montero@gmail.com> writes: >Am 27.10.2026 um 19:40 schrieb Scott Lurndal: > >> Total >> 75.71000000000001 USD >> >> Appears they may be using FP instead of integer fixed point arithmetic >> for pricing. > >If you have a proper fp to decimal runtime function this actually >won't happen. That's while numbers which would result in the above >output would always be rounded correctly. That's safe since you'd >need billions of computations that wouldn't result to such results >by accident. There's no reason to use FP at all in this application.
Technical Details
Message-ID:
<7O3GS.36609$8SW5.9416@fx40.iad>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mailReferences:
<11bpvs7$1e6kc$2@dont-email.me> <11bqnvh$1np7s$1@dont-email.me> <Ue6ES.2265$y_V1.1859@fx12.iad> <11cah2l$32csk$2@raubtier-asyl.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail X-newsreader: xrn 9.03-beta-14-64bit Sender: scott@dragon.sl.home (Scott Lurndal) From: scott@slp53.sl.home (Scott Lurndal) Reply-To: slp53@pacbell.net Subject: Re: .5 against 0.5f Newsgroups: comp.lang.c References: <11bpvs7$1e6kc$2@dont-email.me> <11bqnvh$1np7s$1@dont-email.me> <Ue6ES.2265$y_V1.1859@fx12.iad> <11cah2l$32csk$2@raubtier-asyl.eternal-september.org> Lines: 17 Message-ID: <7O3GS.36609$8SW5.9416@fx40.iad> X-Complaints-To: abuse@usenetserver.com NNTP-Posting-Date: Mon, 02 Nov 2026 17:31:47 UTC Organization: UsenetServer - www.usenetserver.com Date: Mon, 02 Nov 2026 17:31:47 GMT X-Received-Bytes: 1260