/ Published in: Python
storing integer in string using conversion specifier
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
alt =23850 dm=72350 mph =125 z = ("Altitude " + "%.1f" % alt + " ft velocity " + "%.1f" % dm + " dm/sec " +"%.3f" % mph + " mph") nuke.message(z)