On 03/01/2021 19:15, Charlie Gibbs wrote:
On 2021-01-03, Joe <joe@jretrading.com> wrote:Odd. I use it extensively. Not for money oriented stuff tho
On Sun, 03 Jan 2021 15:41:04 GMT
Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> wrote:
I use an asm math library written by someone else,
so far 32 bit integer was all I needed,
"If you need to use floating-point arithmetic in FORTH,
you do not fully understand your application"
Not sure if it was Charles Moore or Leo Brodie who said that.
It makes sense, though, depending on your applications.
In 50 years of commercial programming, I can count the
number of times I've used floating point on the fingers
of one hand.
Den 2021-01-04 kl. 04:17, skrev The Natural Philosopher:point_arithmetic#Computer_language_implementations>
On 03/01/2021 19:15, Charlie Gibbs wrote:Money should use Fixed type.
On 2021-01-03, Joe <joe@jretrading.com> wrote:Odd. I use it extensively. Not for money oriented stuff tho
On Sun, 03 Jan 2021 15:41:04 GMT Jan Panteltje
<pNaOnStPeAlMtje@yahoo.com> wrote:
I use an asm math library written by someone else,
so far 32 bit integer was all I needed,
"If you need to use floating-point arithmetic in FORTH,
you do not fully understand your application"
Not sure if it was Charles Moore or Leo Brodie who said that.
It makes sense, though, depending on your applications.
In 50 years of commercial programming, I can count the number of times
I've used floating point on the fingers of one hand.
<https://en.wikipedia.org/wiki/Fixed-
Money should use Fixed type.point_arithmetic#Computer_language_implementations>
<https://en.wikipedia.org/wiki/Fixed-
Depends: Thats OK for a single currency system, but if you need to handle multi-currency, then you need at least three variables to describe a financial amount:
The Mainframes I've worked on have ALWAYS used integers for financial
values, though quite a lot of the weedier bottom-of-the-range IBM boxes
used BCD - but at least they had BCD hardware and didn't have to do >calculations entirely in software.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 504 |
Nodes: | 16 (2 / 14) |
Uptime: | 248:13:38 |
Calls: | 9,892 |
Calls today: | 1 |
Files: | 13,794 |
Messages: | 6,294,462 |