News:

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

print ST(0)

Started by ale.c, September 10, 2007, 02:39:51 AM

Previous topic - Next topic

ale.c

Hi to everyone, i am a newbie of assembly!
How can i print a fpu number from ST(0) to the screen?
Thank you very much!
Alessio

MichaelW

AFAIK there is no simple method of converting a floating-point value to a string, or at least not one that will work correctly for the full range of values. You could take a look at the FpuFLtoA procedure in the fpulib source included in the MASM32 package or available for download here:

http://www.ray.masmcode.com/fpu.html#fpulib
eschew obfuscation

ale.c

I'll take a look. thanks :U