1
0
Fork 0

another case of round()

This commit is contained in:
mfranz 2007-03-31 15:27:21 +00:00
parent b395c12fdb
commit 570b19b2ff

View file

@ -67,7 +67,7 @@ Altimeter::update (double dt)
_mode_c_node->setDoubleValue(100 * SGMiscd::round(raw_PA/100)); _mode_c_node->setDoubleValue(100 * SGMiscd::round(raw_PA/100));
_kollsman = fgGetLowPass(_kollsman, _altimeter.kollsman_ft(setting), trat); _kollsman = fgGetLowPass(_kollsman, _altimeter.kollsman_ft(setting), trat);
if (_quantum) if (_quantum)
press_alt = _quantum*round(raw_PA/_quantum); press_alt = _quantum * SGMiscd::round(raw_PA/_quantum);
else else
press_alt = raw_PA; press_alt = raw_PA;
_press_alt_node->setDoubleValue(press_alt); _press_alt_node->setDoubleValue(press_alt);