X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fmetar_main.cxx;h=d150b65267097f027dce01302e0db4d10a01f766;hb=224afcc7e4cb4191be15f3df025164fcd83f5102;hp=c5ee10d7566875d4ed910dc4777c66dfb360431e;hpb=f928df6cafd29c31054d6896448b59a3f98dc400;p=flightgear.git diff --git a/src/Main/metar_main.cxx b/src/Main/metar_main.cxx index c5ee10d75..d150b6526 100644 --- a/src/Main/metar_main.cxx +++ b/src/Main/metar_main.cxx @@ -16,13 +16,15 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ #include #include +#include #include +#include #include #include @@ -75,7 +77,7 @@ const char *azimuthName(double d) double rnd(double r, int g = 0) { double f = pow(10.0, g); - return f * rint(r / f); + return f * floor(r / f + 0.5); }