round

Description

The round function returns the nearest integral value as a floating-point number. Halfway cases are rounded away from zero.

Calling Interface

float roundf(float x);

For more complete information about compiler optimizations, see our Optimization Notice.