The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: ale.c on September 10, 2007, 02:39:51 AM

Title: print ST(0)
Post by: ale.c on September 10, 2007, 02:39:51 AM
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
Title: Re: print ST(0)
Post by: MichaelW on September 10, 2007, 08:57:47 PM
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
Title: Re: print ST(0)
Post by: ale.c on September 10, 2007, 09:24:35 PM
I'll take a look. thanks :U