// my hardware/driver requires many more.
#define POFF_UNITS 4
-#ifndef HAVE_TRUNCF
-inline float truncf (float d) {
- return (d < 0) ? -floorf(-d) : floorf(d);
-}
-#endif
-
-\f
////////////////////////////////////////////////////////////////////////
// Local functions.
////////////////////////////////////////////////////////////////////////
break;
case DOUBLE_VALUE:
double d = _offs + _node->getFloatValue() * _mult;
- if (_trunc) d = truncf(d);
+ if (_trunc) d = (d < 0) ? -floorf(-d) : floorf(d);
sprintf(_buf, _fmt.c_str(), d);
break;
}