mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
xpressn.c, introduce fortran style nint() rounding function
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user