hi all, i'm performing some operations like finit, fmul fdiv ... I'm wondering what's the floating format i'm normally using ?

IEEE 4 byte real					           FLOATING POINT FORMATS

	31 30	 23 22			         0
	+-+--------+--------------------------+
	|s| 8 bits |msb   23 bit mantissa  lsb|
	+-+--------+--------------------------+
	 |	|		 +----------------  mantissa
	 |	+--------------------------------  biased exponent (7fh)
	 +-------------------------------------  sign bit

	IEEE 8 byte real

	63 62	   52 51				              0
	+-+----------+------------------------------------+
	|s|  11 bits |msb	 52 bit mantissa             lsb|
	+-+----------+------------------------------------+
	 |	|		 +----------------  mantissa
	 |	+--------------------------------  biased exponent (3FFh)
	 +-------------------------------------  sign bit

	Microsoft 4 byte real

	31     24 23 22			         0
	+--------+-+--------------------------+
	| 8 bits |s|msb  23 bit mantissa   lsb|
	+--------+-+--------------------------+
	     |	  |		 +----------------  mantissa
	     |	  +----------------------------  sign bit
	     +------------------------------  biased exponent (81h)

	Microsoft 8 byte real (see note below)

	63    56 55 54 				            0
	+-------+-+------------------------------------+
	| 8bits |s|msb		52 bit mantissa     lsb|
	+-------+-+------------------------------------+
	    |	 |		      +------------  mantissa
	    |	 +-----------------------------  sign bit
	    +---------------------------  biased exponent (401h, see below)

 	IEEE 10 byte real (temporary real)

	79 78	    64 63 62					         0
	+-+-----------+-+----------------------------------------+
	|s|  15 bits  |1|msb	      63 bit mantissa	       lsb|
	+-+-----------+-+----------------------------------------+
	 |	|      |		    +-----  mantissa
	 |	|      +------------------------  first mantissa bit
	 |	+-----------------------------   biased exponent (3FFFh)
	 +----------------------------------  sign bit
 	
Turbo Pascal 6 byte real

	47     40 39 38				            0
	+--------+-+------------------------------------+
	| 8 bits |s|msb	39 bit mantissa            lsb|
	+--------+-+------------------------------------+
	     |	  |		     +------------  mantissa
	     |	  +-----------------------------  sign bit
	     +--------------------------------  biased exponent (80h)
 	
Microsoft Fortran Complex number
	+--------------------------+-----------------------------+
	|   Float Real component   |  Float Imaginary component  |
	+--------------------------+-----------------------------+
THX
Posted on 2001-06-14 02:08:00 by angelo
You can use the 3 IEEE formats. REAL4 => IEEE 32-bit real numbers REAL8 => IEEE 64-bit real numbers REAL10 => IEEE 80-bit real numbers Read the chapter 6 of the MASM manual for more information. Good luck
Posted on 2001-06-14 02:55:00 by karim