Hi
I have couple of questions. I am building a calculator and i was wondering what command should i use to put a decimal number on display window and also how do i get a decimal number from the display window and where to store it? I know how to do it with integers but i am not sure how to do it with decimals. I tried searching but didnt find anything.
Thanks a lot
slim
I have couple of questions. I am building a calculator and i was wondering what command should i use to put a decimal number on display window and also how do i get a decimal number from the display window and where to store it? I know how to do it with integers but i am not sure how to do it with decimals. I tried searching but didnt find anything.
Thanks a lot
slim
To get the decimal place from a display window, you have to get it via a string and then convert it to a floating point number.
For the reverse, you would have to convert the floating point number to a string, then output it.
For the reverse, you would have to convert the floating point number to a string, then output it.
HI,
Can you tell me what command do i use to convert it to a floating number?
And what command to use to convert it from a floating number to a string?
thanks slim
Can you tell me what command do i use to convert it to a floating number?
And what command to use to convert it from a floating number to a string?
thanks slim
You could have a look at the FPULIB library of functions. It does have the functions to convert to and from float/ASCII. Although it is included as part of the MASM32 package, the latest library with an extensive Help file, and the source code for all the functions, are available at:
http://www.ray.masmcode.com/index.html#fputut
Raymond
http://www.ray.masmcode.com/index.html#fputut
Raymond