PGARound5
Mathematically round a double to an integer, using 0.5 as the cutoff value.
Usage
#include "pgapack.h" int PGARound(ctx, x) PGAContext *ctx double x
Input parameters
ctx
|
- context variable |
|---|---|
x
|
- the number to be rounded |
Output parameters
- none
Location
utility.c
Examples
Example: PGAContext *ctx; int y; y = PGARound(ctx, -78.6);
Releases
Unchanged in 4 releases since Debian 5.0 (Lenny).