Il giorno 28 gennaio 2014 11:38, Gabriele Battaglia <iz4...@libero.it> ha scritto:
> Buongiorno a tutti. > > Python 2.7.6, se ho: > > a, b = 4, 6 >>>> c = a / b >>>> c >>>> >>> 0 > >> c = a // b >>>> c >>>> >>> 0 > > Come faccio ad ottenere che c assuma: > >> 4 / 6.0 >>>> >>> 0.66666666666666666666666 > il modo piĆ¹ semplice >>> a, b = 4, 6.0 >>> c = a / b >>> c 0.66666666666666666666666 ciao, Marco
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python