FJsonObject::GetIntegerField() loses precision
Stumbled upon this today as I was reading Unix timestamps from a json input.
FJsonObject::GetIntegerField() invokes FMath::TruncToInt( float ) with an argument of type 'double'. The implicit double -> float conversion silently loses precision and screws up reading perfect int32 values.
Having FMath::TruncToInt( double ) would fix that. It's absence might actually have negative implications outside FJsonObject as well.
asked Jul 29 '16 at 09:47 AM in Bug Reports
What you described is what I was referring to in my previous comment. I may not have adequately stated what I was thinking. What is happening here is not specifically a result of the implicit
I have entered UE-34255 to have this investigated further.
answered Aug 04 '16 at 09:28 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here