<div>>>> print('%.0f%%' % (0.7*100))</div><div>70%</div><br><div class="gmail_quote">On Sun, Feb 21, 2010 at 12:53 PM, vsoler <span dir="ltr"><<a href="mailto:vicente.soler@gmail.com">vicente.soler@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm trying to print .7 as 70%<br>
I've tried:<br>
<br>
print format(.7,'%%')<br>
.7.format('%%')<br>
<br>
but neither works. I don't know what the syntax is...<br>
<br>
Can you help?<br>
<br>
Thank you<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>