Float problem
Hello! I have made a function which takes a Speed Base Value (float) and a Modifier Value (float), multiply both, then divides the result per 100 and finally, I add the result to the Speed Base Value so I get a base number + a percentage. I add the screenshot. The thing is that the total result I get returns a float with a high number of decimals while I only want to get 2 decimals maximum. I add a second screenshot of what I get making a 2% of a Speed Base Value of 180 which returns a total of 183.600006 So I have tried tons of ways to make that number have just two decimals, I dont need more than two. I add a third screenshot of some of the ways I tried with no success. I could get just two decimals when showing on the HUD, applying the node ToText(float) directly to the TextBox but thats not what I really want. I just want to get those 2 decimals on the float value itself. What is really happening? Why I can not get just two decimals? Any ideas? Thank you all
(comments are locked)

why not use integer?
(comments are locked)

Follow this question
Once you sign in you will be able to subscribe for any updates here