hi
having issues when adding / summing 2 floating point variables in blueprint
its fine as long as the variables dont exceed 1000
thereafter it messes up the summation and truncates the input
for example, 700 + 500 will correctly sum as 1200, but 1100 + 300 will sum as 301
the 2 inputs are both text to float conversions from rich text blocks
so i guess i am either not doing the text / string to float conversion well, or am not specifying the floating point as part of the summation well
regards
This looks wierd to me, to be honest. I’ve never encountered issue like this. What are the values you get from text to float conversion? You can check by that what is causing the issue. Are you sure you need floats for this? Have you tried with Integers to check if the result is the same?
Never query widget fields for their data. Operate on variables which widgets just display - that’s their job.
And yes, it’s the gnarly conversion to blame.
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.