Decimal floating point

discussion of forwardcom instruction set and corresponding hardware and software

Moderator: agner

Post Reply
JoeDuarte
Posts: 41
Joined: 2017-12-19, 18:51:45

Decimal floating point

Post by JoeDuarte »

Hi Agner – Have you considered instructions for decimal floating point? As you know, I really don't like binary floating point and the problems it causes, including those you listed in your last thread. Some interesting papers on hardware support for decimal floating point:

Mike Cowlishaw got it into IBM's modern Power architectures: https://pdfs.semanticscholar.org/8351/d ... 9adc77.pdf

Decimal floating point futurism: http://www.silminds.com/dl/Decimal-Floa ... essors.pdf

An interesting decimal floating point divider: https://link.springer.com/article/10.10 ... 007-0058-5
agner
Site Admin
Posts: 184
Joined: 2017-10-15, 8:07:27
Contact:

Re: Decimal floating point

Post by agner »

I prefer computers to use binary numbers. This is more efficient. The standards for decimal floating point numbers are certainly not easier to deal with than binary.
HubertLamontagne
Posts: 80
Joined: 2017-11-17, 21:39:51

Re: Decimal floating point

Post by HubertLamontagne »

It only really makes sense for financial applications, no?
agner
Site Admin
Posts: 184
Joined: 2017-10-15, 8:07:27
Contact:

Re: Decimal floating point

Post by agner »

Why would a financial application need decimal floating point? You can get exactness just by multiplying by 100 so that you are counting cents rather than $ or € or whatever.

BTW, the x86 instruction set has instructions for decimal numbers but they were never used, so they have been removed in x86-64.
Post Reply