Description

Incorrect conversions values received and using FUnitConversion::Conversion

Steps to Reproduce
  1. Add and run the following code sample to a project: 

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

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-93998 in the post.

0
Login to Vote

Fixed
ComponentUE - Foundation - Core
Affects Versions4.24.34.25.1
Target Fix4.26
Fix Commit13678259
Main Commit13911121
CreatedJun 5, 2020
ResolvedJun 15, 2020
UpdatedJul 21, 2020