How to limit the number of decimals in a displayed float?
The situation is as follows:
I have made a Text shape which can display the distance between two dummies. The following script is embedded in the Kerning parameter of the Text shape to make it update the text shape runtime.
$ArrowLineNumber06.text=(distance $DummyTipArrow11 $DummyTipArrow12 /10) as string + “cm”
The problem I have is that I am not interested in a up to six decimal precision (like 1.342434) I just need one or two decimals (like 1.3). How do I limit the number of decimals in a displayed float?
Thanks for any help.