🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.advocacy
Article #876

Re: Back To CS Basics. Fuck AI

#876
From: Jan Panteltje
Date: Fri, 16 Oct 2026 17:10
40 lines
2260 bytes
>Leroy H <lh@somewhere.net>wrote:
>>On Fri, 16 Oct 2026 11:44:54 -0400, Chris Ahlstrom wrote:
>
>> 
>> For C++, Boost.Decimal.
>> 
>
>Some people don't use C++.  I would hope that most would not.
>
>It is recommended, and even required in some countries, that all
>financial software be written using decimal FP. 
>
>But once libdfp drops out then GNU/Linux C programmers will be
>stuck.
>

Well C++ is a crime against humanity
'operator overloading...' crap bloated crap.

But maybe you can call 'wcalc' from the C code,
it supports  stdin - stdout

raspberrypi: ~ # wcalc -EE
Enter an expression to evaluate, q to quit, or ? for help:
-> 1/pi
 = 0.318310
-> q

raspberrypi: ~ # echo "1/pi" | wcalc
 = 0.31831
raspberrypi: ~ # echo "1/pi" | wcalc -EE 
 = 0.318310

You can just do decimal in C
Use type double if you are worried about microcents.

I have written financial software in C.
What is the problem?

Technical Details
Message-ID: <11atlpr$3g55c$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: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <11atgth$3e59h$1@dont-email.me> <18df0ea174d534e0$1613$2650862$802601b3@news.usenetexpress.com>

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: Jan Panteltje <alien@comet.invalid>
Newsgroups: comp.os.linux.misc,comp.os.linux.advocacy
Subject: Re: Back To CS Basics. Fuck AI
Date: Fri, 16 Oct 2026 17:10:18 GMT
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <11atlpr$3g55c$1@dont-email.me>
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <11atgth$3e59h$1@dont-email.me> <18df0ea174d534e0$1613$2650862$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Oct 2026 17:10:20 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3675308"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/BHLPkEOGek53RaQDoXwEeqlWpTHwTA+I="; posting-host="cca828db66a7f8d8fe408650f98226cc"
Cancel-Lock: sha1:8JFn97eT8RWn0XlNh7MaBLQ254c= sha256:MbmI4CWA0bBprQSU7FK3/gVAUxaRR6YBtfmh7+X1QLo=
	sha1:QnEp2P7g3Q0hUzokISZGDBxTabk= sha256:zGBPzpthn0r3uXlJwKLo+y5QUTpjAai/3kjjGsq2jKA=