Function PGARound

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