Everything

roundf [V1.09 or later]


This function rounds the argument to an integer value in a floating-point format according to the rounding direction.

[Classification]

Mathematical library

[Syntax]

#include <math.h>

float __far roundf(float x); (C99)

[Return value]

Returns a rounded value.

[Description]

This function rounds the argument to the integer value in a floating-point format according to the rounding direction, with halfway cases rounded away from 0.