How do I make it so that my text object does not display number values below 0.1, such 0.01?

Hello.
I have a text object used to display a timer.
I have a timer event running that adds 0.1 to a variable every 0.1 seconds.
The text object displays the variable at all times.
For some reason it will display the variable, with a long string of numbers after the decimal point (for example,1.1999999999) and I only want it to display full and first point numbers (for example, 1.1).

How should I fix this?

Use the expression floorTo(YourVariableName,1) you can change number 1 to the number of decimals you want to see.

Your text action should be something like:
ToString(floorTo(MyVariable,1))

1 Like