RoundToZero Function

Rounds a float to the closest integer to zero.

int RoundToZero(float value)

Parameters

float value

Input value to be rounded.

Return Value

Rounded value.