Ben Pfaff wrote:
> 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?

This would be a good idea. Can you write it so that it augments <math.h>,
like we do for <fcntl.h> or <sys/stat.h>?

If you're at it, you can also contribute the complete set of rounding functions
from ISO C 99 7.12.9: ceil, floor, nearbyint, rint, lrint, llrint, round,
lround, llround, trunc.

Can substitutes in gnulib assume that the 'double' format is IEEE 754
(it is on all modern platforms; VAX was the last one with other formats) ?
Or should they be written in a slower, but more portable way?

Bruno


Reply via email to