1
0
Fork 0

yet another round() ...

This commit is contained in:
mfranz 2007-03-31 17:45:23 +00:00
parent 570b19b2ff
commit 724ba5b4ad

View file

@ -1,3 +1,5 @@
#include <simgear/math/SGMath.hxx>
#include "atmosphere.hxx" #include "atmosphere.hxx"
using namespace std; 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 press = P_layer(hgt_ft*foot, 0, ISA::P0, Tref, ISA::lam0);
double p_inHg = press / inHg; double p_inHg = press / inHg;
double qnhx = qnh(hgt_ft, p_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 Aprind = reading_ft(p_inHg);
double Apr = a_vs_p(p_inHg*inHg) / foot; double Apr = a_vs_p(p_inHg*inHg) / foot;