From 724ba5b4ad5cde75e49195fa6ef6f6cb642b3b23 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 31 Mar 2007 17:45:23 +0000 Subject: [PATCH] yet another round() ... --- src/Environment/atmosphere.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Environment/atmosphere.cxx b/src/Environment/atmosphere.cxx index 70180bdfb..2e41c0570 100644 --- a/src/Environment/atmosphere.cxx +++ b/src/Environment/atmosphere.cxx @@ -1,3 +1,5 @@ +#include + #include "atmosphere.hxx" using namespace std; @@ -191,7 +193,7 @@ void FGAltimeter::dump_stack1(const double Tref) { double press = P_layer(hgt_ft*foot, 0, ISA::P0, Tref, ISA::lam0); double p_inHg = press / inHg; double qnhx = qnh(hgt_ft, p_inHg); - double qnh2 = round(qnhx*100)/100; + double qnh2 = SGMiscd::round(qnhx*100)/100; double Aprind = reading_ft(p_inHg); double Apr = a_vs_p(p_inHg*inHg) / foot;