RoundHalfToZero

Overload list

Windows
MacOS
Linux
Name Description

Public function Static

float

 

RoundHalfToZero

(
    float F
)

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

Public function Static

double

 

RoundHalfToZero

(
    double F
)

Converts a floating point number to the nearest integer, equidistant ties go to the value which is closer to zero: -0.5 becomes 0, 0.5 becomes 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