PGARound(5)

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).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.