How do I get a decimal value when using the division operator in Python?
Posted
by Ray Vega
on Stack Overflow
See other posts from Stack Overflow
or by Ray Vega
Published on 2008-09-22T20:06:16Z
Indexed on
2010/04/07
2:33 UTC
Read the original article
Hit count: 321
For example, the standard division symbol '/' rounds to zero:
>>> 4 / 100
0
However, I want it to return 0.04. What do I use?
© Stack Overflow or respective owner