![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Surtarso |
I want to show a % sign inside a string… is there a way?
$AccuracyLabel.text = "Accuracy: %s" % (int(round((float(PlayerData.shots_hit) / PlayerData.shots_fired) * 100)))
prints and integer (as expected) so
Accuracy: 87
how do I get it to be Accuracy: 87%
?
I tried your example with escaping for quotes within quotes with \ but \%
didnt help…