June 11, 200916 yr What is the advantage of using FLOAT64 (and other defines such as WORD and DWORD) instead of their C/C++ types? I can't find FLOAT64 in Microsoft's list.http://msdn.microsoft.com/en-us/library/cc...0(PROT.10).aspx Gerry Howard
June 11, 200916 yr Commercial Member FLOAT64 is the FS var type for a double. It's habit. ;) Ed Wilson Mindstar AviationMy Playland - I69
June 11, 200916 yr FLOAT64 is the FS var type for a double. It's habit. ;)As I recal, WORD and DWORD first appeared in assembler code! Gerry Howard
June 11, 200916 yr Moderator From the gauges.h file:// Floating-point typestypedef double FLOAT64, *PFLOAT64, **PPFLOAT64;typedef float FLOAT32, *PFLOAT32, **PPFLOAT32;Note that "float" is really a FLOAT32... :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
June 11, 200916 yr Commercial Member Um Bill, ya got it backwards... ;)FLOAT32 is really a float. :D Ed Wilson Mindstar AviationMy Playland - I69
June 12, 200916 yr Moderator Oh, okay...In fact, they (ACES) could have defined a "float" as FLOAT27 just to be even more perverse... :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
June 12, 200916 yr Well, the numbers refer specifically to the number of bits used to store that value, and were important back in the FS5/FS95 days when most of the code was still written in assembler :-> Be happy you don't have to deal with SIF48 or ANGL48 values directly anymore (or do gauges still use those types?) :->Tim Tim http://fsandm.wordpress.com
June 12, 200916 yr Commercial Member Well, the numbers refer specifically to the number of bits used to store that value, and were important back in the FS5/FS95 days when most of the code was still written in assembler :-> Be happy you don't have to deal with SIF48 or ANGL48 values directly anymore (or do gauges still use those types?) :->TimOh, I still use those. I have a book from Mr. Artwick that explained how he defined a bunch of this stuff waaay back when he was coding for 8-bit CPUs. :( Ed Wilson Mindstar AviationMy Playland - I69
Create an account or sign in to comment