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

?

Immagino che la domanda concorra al premio stupidità 2014, Beh, una doveva pur esserci no? E poi siamo appena a gennaio. :) Gabriele.
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a