2004-03-29 10:22:20 +02:00
|
|
|
#include <math.h>
|
2002-06-13 12:20:48 +02:00
|
|
|
|
|
|
|
long double
|
2004-03-29 10:22:20 +02:00
|
|
|
roundl (long double x)
|
|
|
|
{
|
|
|
|
/* Add +/- 0.5 then then round towards zero. */
|
|
|
|
return truncl ( x + (x >= 0.0L ? 0.5L : -0.5L));
|
2002-06-13 12:20:48 +02:00
|
|
|
}
|