Function PGARound
Defined in File utility.c
Function Documentation
-
int PGARound(PGAContext *ctx, double x)
Mathematically round a double to an integer, using 0.5 as the cutoff value.
Example
PGAContext *ctx; int y; ... y = PGARound (ctx, -78.6);
- Parameters:
ctx – context variable
x – the number to be rounded
- Returns:
The rounded number