a / float(b)
ciao
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python
Il giorno 28 gennaio 2014 11:46, Marco De Paoli ha
scritto:
>
>
>
> Il giorno 28 gennaio 2014 11:38, Gabriele Battaglia 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 facc
Il giorno 28 gennaio 2014 11:38, Gabriele Battaglia 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.666
>
il modo p