xpressn.c, introduce fortran style nint() rounding function

This commit is contained in:
rlar
2014-01-02 09:33:21 +01:00
parent a088a6e0e6
commit d225c4f958
4 changed files with 91 additions and 33 deletions
+8
View File
@@ -12,6 +12,14 @@ x_trunc(double x)
}
double
x_nearbyint(double x)
{
/* thats grossly incorrect, anyway, don't worry, be crappy ... */
return floor(x + 0.5);
}
double
x_asinh(double x)
{