![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Suleymanov |
1st problem >> I need my “speedometer” label to show only the first digits until the decimal point.
Instead of “N.nnnnnn” I need “N”.
What do I need to change in my current code? >> SpeedoLabel.text = str(speed)
2nd problem >> I need my “lap time” label to show the digits before the decimal point and also only 3 digits after the decimal point.
Instead of “N.nnnnnn” I need “N.nnn”.
What do I need to change in my current code? >> LapTimeLabel.text = str(time)
Thank you for your time!