round(), roundf()

round to nearest integral value 

Function


SYNOPSIS

#include <math.h>

double round(double x)

float roundf(float x)


DESCRIPTION

The round(), and roundf() 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).


CONFORMANCE

ANSI/ISO 9899:1999 'ISO C99'.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
ceil(), floor(), lrint(), lround(), math(), rint()


PTC MKS Toolkit 10.4 Documentation Build 39.