Ben Pfaff <[EMAIL PROTECTED]> writes:

> C99 added some useful functions to math.h, such as trunc and
> round.  Would there be objections to a module that adds
> implementations of those functions?  I am particularly interested
> in those two functions, which are handy for GNU PSPP, and so I am
> likely to write such a module if acceptance would be likely.

Sounds good to me; thanks.

I assume you know about doing the right thing with infinities and NaNs
and with signed zeros.

What implementation would you use?  'round' is trickier that it might
appear at first, due to problems with internal rounding.  Even 'trunc'
is a bit tricky, since trunc(-0.0) should yield -0.0, not 0.0.


Reply via email to