Display just two numbers after "."
Hi everybody
i have a real game score attribute , and i want to display it with two numbers after point .
ForExample ::
game.score = 4.8945654
i want to change it to ==> 4.89
How can i do that ?
Thank's ..
Hi everybody
i have a real game score attribute , and i want to display it with two numbers after point .
ForExample ::
game.score = 4.8945654
i want to change it to ==> 4.89
How can i do that ?
Thank's ..
Comments
Use the prec function in expression editor.
Display Text
prec(game.score,2)
RoundTo(game.score,2)
The precision function (Prec) is said to be less efficient as it needs to be converted into text, the recomendation is now to use RoundTo.
@Manto1 , @Socks
Thank you ...