Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Structure of Floating Point numbers

Status
Not open for further replies.

ScreaminVegan

Programmer
Aug 10, 2002
5
0
0
US
I use MSVC++ 6.0.

I have been trying to figure out the order of floating point numbers, both of type float and type double, but I can't make any sense of it.

I made a simple little program to examine values bit-by-bit.
I was looking for some sort of mantissa and exponent. I tried to see if they were of a base-2 exponent or base-10, but it didn't seem to be either.

Any help as to the bit-by-bit structure of either would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top