diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index 25d6066ca..63185884c 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -1119,7 +1119,7 @@ FGTextLayer::Chunk::getValue () const break; case DOUBLE_VALUE: double d = _offs + _node->getFloatValue() * _mult; - if (_trunc) d = truncf(d); + if (_trunc) d = floorf(d); sprintf(_buf, _fmt.c_str(), d); break; }