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
 Dan Member Posts: 162 Joined: Jan 2017
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.
 « Next Oldest | Next Newest »

 Messages In This Thread Decimal floating point to binary floating point - Dan - 12-25-2018, 04:06 AM RE: Decimal floating point to binary floating point - Thomas Klemm - 12-25-2018, 08:32 AM RE: Decimal floating point to binary floating point - Albert Chan - 12-25-2018, 11:37 PM RE: Decimal floating point to binary floating point - Dan - 12-26-2018, 07:10 AM RE: Decimal floating point to binary floating point - Paul Dale - 12-26-2018, 07:51 AM RE: Decimal floating point to binary floating point - Dan - 01-03-2019 06:53 AM RE: Decimal floating point to binary floating point - Dan - 12-26-2018, 08:46 AM RE: Decimal floating point to binary floating point - BruceH - 12-30-2018, 05:46 PM RE: Decimal floating point to binary floating point - SlideRule - 12-30-2018, 11:36 PM RE: Decimal floating point to binary floating point - Thomas Klemm - 12-26-2018, 11:14 AM RE: Decimal floating point to binary floating point - Dan - 12-28-2018, 03:45 AM RE: Decimal floating point to binary floating point - Paul Dale - 12-28-2018, 09:33 AM RE: Decimal floating point to binary floating point - Dan - 01-01-2019, 07:27 AM

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