PGARound(3)

PGARound3

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

Part of PGARound(5).

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

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.