Decimal floating point to binary floating point

01032019, 06:53 AM
(This post was last modified: 01032019 06:59 AM by Dan.)
Post: #13




RE: Decimal floating point to binary floating point
(12262018 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. 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 »

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