value of float fields in b3d format = 1065353216

Community Forums/Developer Stations/value of float fields in b3d format = 1065353216

Chaduke(Posted 2008) [#1]
I'm studying a b3d file in a hex editor and following along with the b3d specification.

I'm noticing that in places where the field is a float value, like texture scale for instance, instead of seeing 1 or 0 there I see 00 00 80 3F or 1065353216 in decimal.

Can someone explain this? Thanks.


TomToad(Posted 2008) [#2]
This explains it http://en.wikipedia.org/wiki/IEEE_754


Chaduke(Posted 2008) [#3]
Ahh ok. 1 bit for sign, 8 bits for exponent and 23 bits for fraction. Makes sense now.