I have score system that uses a float variable to keep track of a total score (out of a possible 600).
At the end of the game, I want to to work out the player's score out of a 100%.
The problem is, the float result sometimes displays more than 2 decimal points when calculated.
Is there a way using the Variable:Set formula to display the float with only 1 decimal point? Heck, even 2 would be more acceptable that 4 or 5.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Create an Integer variable to act as a temporary value, then use another pair of "Set formula" commands to set the Integer value to your calculated value multiplied by 100, then another to set it back to the Float value, divided by 100.
That's worked perfectly, cheers, Chris! You're a lifesaver as always