ERoundingMode

Redeclared in KismetTextLibrary for meta-data extraction purposes, be sure to update there as well

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Internationalization/Text.h

Include

#include "Internationalization/Text.h"

Syntax

enum ERoundingMode
{
    HalfToEven,
    HalfFromZero,
    HalfToZero,
    FromZero,
    ToZero,
    ToNegativeInfinity,
    ToPositiveInfinity,
}

Values

Name

Description

HalfToEven

Rounds to the nearest place, equidistant ties go to the value which is closest to an even value: 1.5 becomes 2, 0.5 becomes 0

HalfFromZero

Rounds to nearest place, equidistant ties go to the value which is further from zero: -0.5 becomes -1.0, 0.5 becomes 1.0

HalfToZero

Rounds to nearest place, equidistant ties go to the value which is closer to zero: -0.5 becomes 0, 0.5 becomes 0.

FromZero

Rounds to the value which is further from zero, "larger" in absolute value: 0.1 becomes 1, -0.1 becomes -1

ToZero

Rounds to the value which is closer to zero, "smaller" in absolute value: 0.1 becomes 0, -0.1 becomes 0

ToNegativeInfinity

Rounds to the value which is more negative: 0.1 becomes 0, -0.1 becomes -1

ToPositiveInfinity

Rounds to the value which is more positive: 0.1 becomes 1, -0.1 becomes 0

Remarks

Redeclared in KismetTextLibrary for meta-data extraction purposes, be sure to update there as well

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