Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Would float point format be affected by big-endian and little endian?

I know the integer format would be different between big-endian machine and little-endian machine, is it the same for float point format (IEEE 754)?

like image 646
Thomson Avatar asked Mar 09 '11 07:03

Thomson


1 Answers

The IEEE754 specification for floating point numbers simply doesn't cover the endianness problem. Floating point numbers therefore may use different representations on different machines and, in theory, it's even possible that for two processors integer endianness is the same and floating point is different or vice-versa.

See this wikipedia article for more information.

like image 81
6502 Avatar answered Oct 02 '22 19:10

6502