Incorrect conversions values received and using FUnitConversion::Conversion
float Percentage = 25.5;
float Decimal = FUnitConversion::Convert(Percentage, EUnit::Percentage, EUnit::Multiplier);
// According to UnitConversion::MultiplierUnificationFactor (UnitConversion.cpp line 655)
GEngine->AddOnScreenDebugMessage(2, 30.f, FColor::Red, FString::Printf(TEXT("Output of convert should be 0.255, actual output is %f"), Decimal));
Results: Incorrect conversion
Expected: Correct conversion
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-93998 in the post.
0 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.24.3, 4.25.1 |
Target Fix | 4.26 |
Created | Jun 5, 2020 |
---|---|
Resolved | Jun 15, 2020 |
Updated | Jul 21, 2020 |
7026 - projectgheist |