John Darrington <[EMAIL PROTECTED]> writes:

> On Sat, Nov 25, 2006 at 06:58:41PM -0800, Ben Pfaff wrote:
>      I'd suggest checking for trunc with Autoconf, then providing an
>      implementation based on floor if it doesn't exist, i.e. something
>      like this:
>      
>      #ifndef HAVE_TRUNC
>      double
>      trunc (double d)
>      {
>        return d >= 0.0 ? floor (d) : -floor (-d);
>      }
>      #endif
>      
>      I do something like this for the "round" function.
>
> That's a good idea.  Maybe we should gather these sort of functions
> into a common module and put it in libpspp and/or offer it to the
> gnulib developers for inclusion there.

I've now started a discussion about a gnulib module over in the
gnulib list.  I'll probably try to contribute one.
-- 
"Welcome to the Slippery Slope. Here is your handbasket.
 Say, can you work 70 hours this week?"
--Ron Mansolino


_______________________________________________
pspp-dev mailing list
pspp-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to