On Mon, Oct 27, 2008 at 10:20 AM, Achim Schneider <barsoap at web.de> wrote: > Hmmm... I'm wondering whether there's a standard C way to set the > rounding direction. nearbyint() and rint() may be used, and the rounding mode can be set by fesetround(). IIRC, this is C99. -- Felipe.