|
From: David M. <da...@me...> - 2001-07-11 14:02:11
|
I've noticed that GCC/G++ 3.0 uses double rather than float by default for floating point constants, so that (under IA86) 1.0 => 8 bytes 1.0F => 4 bytes 1.0L => 12 bytes This causes some interesting problems, especially in JSBSim, which is using float rather than double math most of the time. To be safe, then, if you want to be sure you have a float constant (and that everything doesn't get promoted to double in every equation), make sure you add the 'F' to the end. All the best, David -- David Megginson da...@me... |