GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • OpenBSD

This view

  • Original page
  • New address

GeezerVison is showing man.openbsd.org — round(3) - OpenBSD manual pages

NAME

round, roundf, roundl — round to nearest integral value

SYNOPSIS

/* -lm */
#include <math.h>

double
round(double x);

float
roundf(float x);

long double
roundl(long double x);

DESCRIPTION

The round(), roundf() and roundl() functions return the nearest integral value to x; if x lies halfway between two integral values, then these functions return the integral value with the larger absolute value (i.e., they round away from zero).

SEE ALSO

ceil(3), floor(3), lrint(3), lround(3), nextafter(3), rint(3), trunc(3)

STANDARDS

These functions conform to ISO/IEC 9899:1999 (“ISO C99”).

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.