how do i make it so the text of this only shows 3 numbers so if its 55.5951959198 it just shows 55.5 or if its 9.1123213 it shows 9.11
You can use the SubStr() expression.
Change the text of textobject set to SubStr(textobject.Text::Value(), 0, 4)
The length of the portion should be 4 (last number in the expression), taking into account the “.”
You can do what others do
roundTo(YourNumberHere,How many decimal characters to show)
For example
Variable Score with value 55,50344
With
roundTo(Score,1)
Will show 55,5
Where
roundTo(Score,2)
Will show 55,50
And yes R in round should NOT be CAPITAL
Or if i am wrong it will show
55,51
Since it is rounding it
Where @insein solution can be problematic
Cause if you have SubStr(Text,0,4)
And text of 55,5044
You will display 55,5
But if you will have 5,5044
You will display 5,50
Ultimate solution
SubStr(ToString(Score),0,StrFind(ToString(Score),“.”)+2)
That +2 on end is 1 for dot and 2 for another character after dot
If you put there nothing you will get only interger
For example 55
If you put there +1 you will get integer + dot
For example 55.
If you put there +2 you will get 55.5
If you put there +3 then 55.50
PAY ATTENTION
SubStr(ToString(Score),0,StrFind(ToString(Score),“.”)+2)
On end in “.” is DOT not Comma ,
Where you may want to read a little and try out some crap
It helps A LOT in many situations
https://wiki.gdevelop.io/gdevelop5/all-features/expressions-reference/#text-manipulation