RoundHalfFromZero

Overload list

Windows
MacOS
Linux
Name Description

Public function Static

float

 

RoundHalfFromZero

(
    float F
)

Converts a floating point number to the nearest integer, equidistant ties go to the value which is further from zero: -0.5 becomes -1.0, 0.5 becomes 1.0

Public function Static

double

 

RoundHalfFromZero

(
    double F
)

Converts a floating point number to the nearest integer, equidistant ties go to the value which is further from zero: -0.5 becomes -1.0, 0.5 becomes 1.0

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss