
-----------------------------------
CheapItalian
Sun Oct 09, 2011 11:30 pm

What % means in this code and what does it do in this case.
-----------------------------------
print("Your Salary is $%0.2f" % amount)

print("The area is $%0.1f" % amount)

print("%7f" % amount)

-----------------------------------
Tony
Sun Oct 09, 2011 11:45 pm

RE:What % means in this code and what does it do in this case.
-----------------------------------
string format. Look at the documentation for print for details.

-----------------------------------
z_cross_fire
Sun Oct 09, 2011 11:47 pm

RE:What % means in this code and what does it do in this case.
-----------------------------------
http://www.informit.com/articles/article.aspx?p=28790&seqNum=2
