1
0
Fork 0

Use floor() insstead of floorf()

This commit is contained in:
ehofman 2004-02-23 09:03:41 +00:00
parent 11e0b75bc3
commit 3143e44faa

View file

@ -1118,7 +1118,7 @@ FGTextLayer::Chunk::getValue () const
break;
case DOUBLE_VALUE:
double d = _offs + _node->getFloatValue() * _mult;
if (_trunc) d = (d < 0) ? -floorf(-d) : floorf(d);
if (_trunc) d = (d < 0) ? -floor(-d) : floor(d);
sprintf(_buf, _fmt.c_str(), d);
break;
}