News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

call floating number

Started by fi, March 27, 2006, 05:17:46 AM

Previous topic - Next topic

fi

hello,anybody can tell me how to call for floating number..
because when i create my program...if i key-in the integer number,it haven't not problem to count but when i key-in the floating number,the answer will be false..

how to corrrect it??? ::)

thanks.. :U

ChrisLeslie

Hi fi

I think that you need to provide some more detail on what you have coded already. I assume that when you define a real number you are using an 80 bit type for example, and that you are following the protocols required for using the FPU stack. There is a FPU lib as part of masm32, but I suggest that you read "http://webster.cs.ucr.edu/AoA/DOS/ch14/CH14-1.html" as this gives the basic theory that you need to know.
Do post your code, or just a snippet, as that will make it easy to follow what you know already. People here are very kind and very willing to assist. :U

Regards

Chris

MichaelW

Hello fi, welcome to the forum. I'm not sure what you are asking, but you may be able to find an answer in Raymond Filiatreault's floating-point tutorial. It is included with the MASM32 package and the install should have placed it here:

\masm32\tutorial\fputute

And it is available online here:

http://www.website.masmforum.com/tutorials/fptute/index.html

The MASM32 package also includes Raymond's FPU library and the install should have placed it here:

\masm32\fpulib

And the install also should have placed the necessary include file and library in the normal locations:

\masm32\include
\masm32\lib


eschew obfuscation

raymond

And if you want to download a zipped copy of the tutorial, it's available at:

http://www.ray.masmcode.com/fpu.html

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

fi

thanks you all.. :U
i will look...