+ 1

Why the decimal floating in python is represented in same way as we write .

Python3 programming language.

14th May 2020, 2:26 PM
Kaushal Kishore
Kaushal Kishore - avatar
3 Respostas
+ 1
If i do this in python (using the console) i grt the result: >>> 1/3 0.3333333333333333 So if you get a result like 0.33333 or 0.33 or whatever length of decimal places you select, there must a kind of rounding be involved.
15th May 2020, 2:04 PM
Lothar
Lothar - avatar
+ 1
Not quiete clear for me, whtat you want to know. May be one or two samples from you can help us for a better understanding. Thanks!
14th May 2020, 3:03 PM
Lothar
Lothar - avatar
0
I want to know that why 1/3=0.33333 is not represented as 0.3333 .
15th May 2020, 12:53 AM
Kaushal Kishore
Kaushal Kishore - avatar