News:

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

Printing long double with MASM32

Started by Gunther, September 08, 2010, 01:47:09 AM

Previous topic - Next topic

FORTRANS

Quote from: clive on September 08, 2010, 04:16:20 PM
Still I think their PowerStation Fortran supported REAL10.

Hi,

   My copy does not. Just REAL*4 and REAL*8.  Microsoft
FORTRAN PowerStation Version 1.0.

Regards,

Steve N.


jj2007

Quote from: Gunther on September 08, 2010, 01:47:09 AM
Is there a way to print long double or extended precision values?

Gunther,
MasmBasic Str$ does print 80-bit values:

include \masm32\MasmBasic\MasmBasic.inc
.data
MyReal4 REAL4 3.1416
MyPI REAL10 3.14159265358979323846

Init
Inkey Str$("The rounded value %f", MyReal4), Str$(" is higher than the real PI, %Jf", MyPI)
Exit
end start


QuoteThe rounded value 3.141600 is higher than the real PI, 3.141592653589793238

Gunther

Quote from: jj2007, September 13, 2010, 11:56:02 pmMasmBasic Str$ does print 80-bit values:

Good to know, Jochen. I'll have a closer look at MasmBasic after finishing my current code project.

Gunther
Forgive your enemies, but never forget their names.