floats

Started by
4 comments, last by Zeusel 22 years, 5 months ago
how are floats stored? i know that they are 32 bit, but where is the komma? what would be 1.0 in float binary?
"be fair! ... always"Zeusel
Advertisement
1.0f => 0x3F800000

Some links:

floating-point format
floating-point notes
the story of IEEE floating-point

Also, in the US we use a point instead of a comma, thus "floating-point" -- is it called "floating-comma" elsewhere?


Edited by - Jeff K on November 9, 2001 12:53:00 PM
quote:Original post by Jeff K

Also, in the US we use a point instead of a comma, thus "floating-point" -- is it called "floating-comma" elsewhere?


Yes in french we say "virgule flotante" and that means "floating-comma".

there isnt such a name in luxemburgish!
"be fair! ... always"Zeusel
and that what hexadecimal, not binary, binary should it 01000000 00000000 00000000 00000000 be?
"be fair! ... always"Zeusel
  1.0f => 00111111 10000000 00000000 0000000          0x3F     0x80     0x00     0x00

This topic is closed to new replies.

Advertisement