gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Binary Float and Endianness on the DS

#129026 - goruka - Fri May 18, 2007 1:27 am

Question, I binary-saved a float in IEE-754 format, little endian to a file.. (using x86) then i'm trying to load that float back from the DS...
since I assume the DS is little endian, and IEE-754 compatible, if i load it from a file.. should I expect it to be in perfect shape?

#129028 - kusma - Fri May 18, 2007 1:49 am

Yes. And it's "IEEE-754", not "IEE-754".

edit: note that while C/C++ on the NDS is perfectly IEEE-754 capable, it does not have an FPU. So it's slower than what you'd expect, perhaps.