---
name: "PGARound"
section: "3"
platform: "linux"
package: "pgapack"
version: "1.0.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/PGARound"
---

# PGARound(3)

Mathematically round a double to an integer, using 0.5 as the cutoff value.

## NAME

PGARound - Mathematically round a double to an integer, using 0.5 as the cutoff value.

## INPUT PARAMETERS

- ctx

  \- context variable

- x

  \- the number to be rounded

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
int  PGARound(ctx, x)
PGAContext *ctx
double x
```

## LOCATION

utility.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int y;
y = PGARound(ctx, -78.6);
```
