Files
UnrealEngineUWP/Engine/Source/Runtime/Core/Private/Math
Per Larsson 9e7ff8f850 Fix FText rounding to truncate rounding errors
- FText rounding relied on FMath::RoundHalfFrom/ToZero to truncate the fraction part before rounding from/to zero. This behavior in FMath has changed and this
change brings truncation back to FText rounding routines. The rounding errors is caused when rounding with x decimal digitis. For example FText RoundHalfFromZero
expects 1000.1225 to be rounded to 1000.123 but calling FMath::Modf results in 0.1249999. Trying to round this with 3 decimal digits without truncation
results in 0.122 => 1000.122.
#review-5644550 @steve.robb

[CL 5914907 by Per Larsson in Dev-Core branch]
2019-04-16 04:51:39 -04:00
..
2019-01-14 06:27:42 -05:00