Mathematically round a double to an integer, using 0.5 as the cutoff value.
ctx
- context variable
x
- the number to be rounded
none
#include "pgapack.h" int PGARound(ctx, x) PGAContext *ctx double x
utility.c
Example: PGAContext *ctx; int y; y = PGARound(ctx, -78.6);