[Solved] QML real to string with 1 digit precision??
General and Desktop
4
Posts
3
Posters
27.3k
Views
1
Watching
-
wrote on 9 May 2012, 13:46 last edited by
Hello,
I want to show the value of a property with real typ in a
text element. How can I change the precision? I only
want to have 1 digit. -
wrote on 9 May 2012, 14:02 last edited by
Hi,
try num.toFixed(1)
-
wrote on 9 May 2012, 14:18 last edited by
biiiig thx, its working
-
wrote on 9 May 2012, 14:33 last edited by
Please be sure and edit your original post and add [Solved] to the title. Thanks!
1/4