<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> def ftse():<br>
>     prezzo = float(get_price("ftsemib.mi"))<br>
>     change = float(get_change("ftsemib.mi"))<br>
>     return  "%0.2f" % (100.0*change/(prezzo - change))<br>
<br>
</div>Prova a togliere i due float() prima di get_change lasciando però 100.0.</blockquote><div><br></div><div>ho già provato ma la libreria ystockquote mi da delle stringhe. stesso problema qui:</div><div><a href="http://stackoverflow.com/questions/7653403/typeerror-unsupported-operand-types-for-str-and-str">http://stackoverflow.com/questions/7653403/typeerror-unsupported-operand-types-for-str-and-str</a> </div>

</div>