Navigation
API > API/Runtime > API/Runtime/Core
Redeclared in KismetTextLibrary for meta-data extraction purposes, be sure to update there as well
| Name | ERoundingMode |
| Type | enum |
| Header File | /Engine/Source/Runtime/Core/Public/Internationalization/Text.h |
| Include Path | #include "Internationalization/Text.h" |
Syntax
enum ERoundingMode
{
HalfToEven,
HalfFromZero,
HalfToZero,
FromZero,
ToZero,
ToNegativeInfinity,
ToPositiveInfinity,
}
Values
| Name | Remarks |
|---|---|
| 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 |