0

What is the difference between 32 and 32.0 when they outbuts

9th Oct 2018, 9:53 AM
Peter Bassem
Peter Bassem - avatar
2 ответов
+ 3
32 is of type int, whole number, 32.0 is of type float, number with decimal points.
9th Oct 2018, 10:20 AM
Ipang
+ 1
When they outbuts? 32 is an integer 32.0 is a float 32.0 could also be a double or decimal in other languages. python doesnt have these data types they do have floats and integers. https://realpython.com/python-data-types/ So the difference would be the datatype
9th Oct 2018, 10:20 AM
Willem Roos