Post Reply 
Decimal floating point to binary floating point
01-03-2019, 06:53 AM (This post was last modified: 01-03-2019 06:59 AM by Dan.)
Post: #13
RE: Decimal floating point to binary floating point
(12-26-2018 07:51 AM)Paul Dale Wrote:  An alternative approach would be to use the floating point hardware to produce initial approximations for the decimal float library. Intel's decimal library does this in places.

Pauli

Intel's library is impressive but I have no idea how to add it to my project.

However I can include the math.h and complex.h headers - I'm pleasantly surprised by the number of mathematical functions in the C libraries. You pretty much have a scientific calculator right away.

Also there is no need to convert from decimal to binary because the float and double data types are supported, you just type

value=0;
.
.
value = value * 10 + key;

and "value" is updated each time the user presses a key.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Decimal floating point to binary floating point - Dan - 01-03-2019 06:53 AM



User(s) browsing this thread: 5 Guest(s)