-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dave Martin schrieb: | Any clues as to why, when I try to display the output | of /instrumentation/comm/frequencies/selected-mhz etc on my Comm radio, The | output gets rounded down or reduced by 0.01 in some cases but not others. | | ie: set 120.5 displayed 120.49 | | set 120.8 displayed 120.8 |
Floating point rounding error? (There are many "simple" numbers that we use, that floating point numbers can't represent. E.g. 0.01)
If the floating point number gets cut off and not rounded you'll also might get that effect.
Could you try to add 0.005 before rounding/cut off and see if that helps?
CU, Christian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB1XfnlhWtxOxWNFcRAiNpAKCy8S8LY4ExvB5Ah3yXGkjwmYzf4ACeMuw7 HwBQsU+LdstXGCkSxqPi3co= =ZnKj -----END PGP SIGNATURE-----
_______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d