0
3/4 shows me 0 y?
5 Respostas
+ 5
are you sure thats python?
+ 4
Python 2.x assumes the division sign to carry out division operations based on data types - floor for integers and float for floating point numbers.
Python 3.x allows you to force the division type - single / represents float division and double // - floor division, regardless the data types of the divided numbers.
0
python27
0
maybe you used "//" instead of "/"... this "//" calculate integer division (cast the result to be an integer)
0
kk ty