Sun Posted November 20, 2003 Report Posted November 20, 2003 I'm using FSUIPC, FS2002, and MFC. I'm using MFC with MS visual C++ 6.0, so I can't use float64. Visual C++ doesn't support C99 standard but C90. So I can't extract six velocity data(x, y ,z, pitch, bank, and heading) because I can't use float 64. Is there any way extracting these data without float64. I know latitude and longitude can be extracted by dividing the data(dHi, dLo). Therefore I think there is a way to get velocity without float64 data type. If it can't be, please let me know how I can use float64 with MFC. Thanks. :wink:
Pete Dowson Posted November 20, 2003 Report Posted November 20, 2003 I'm using MFC with MS visual C++ 6.0, so I can't use float64. I used MSVC C++ 6 until a few weeks ago. You are wrong! :) "float64" is merely FS's term for the standard C "double". You can most certainly use it in your compiler. It is an ANSI standard and appears in the C definition of many years ago, and it is implemented in all C compilers as far as I know. I seem to recall that in the very first edition of C (in 1978 or close) there was "float" (32 bit) and "long float" (64 bit), but the latter was re-named "double" soon after. There was even a "long double" mooted but I've never seen anything "longer" than 64 bit implemented. let me know how I can use float64 with MFC. If you want to call it FLOAT64 instead of double, just declare it: #typedef double FLOAT64 Regards, Pete
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now