RoundFloat Function

Rounds a floating point number using the "round to nearest" algorithm.

int RoundFloat(float value)

Parameters

float value

Floating point value to round.

Return Value

The value rounded to the nearest integer.