Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 Discussions

represetation of floating point numbers

Intel_C_Intel
Employee
433 Views
Hi, does anyone know how does ifc represents double floating point numbers, real numbers, complex numbers and double complex numbers? For instance how does the 32 bits assigned in the representation of real numbers? Which bits are used for sign information and which bits are used for mantissa and etc.
If anyone could explain the roles of bits in the representation of these mentioned number types. I would be very glad.
0 Kudos
1 Reply
TimP
Honored Contributor III
433 Views
It's in accordance with the IEEE 754 standard, with byte ordering the same as integer byte ordering. For instance, single precision has the sign and biased exponent in the high order (last) byte, and the unsigned mantissa with high order bit suppressed, in the other 3 bytes. I think some of the better references are squirreled away in the IEEE web site, to which your librarian may have a subscription. You could look up the gnu software floating point packages, if that's your interest.
0 Kudos
Reply