+ 1
Why would 7.0 be stored as a float if its still a whole number?
Why is 7.0 stored as a float
5 Antworten
+ 5
Yeah sorry I forgot to check the tag. Python types dynamically apparently (just saw that in the python tutorial) so it is because you add the decimal point.
+ 3
Because it is stored as a float when you declare it as a 'float'.
+ 2
@Karl I think he's referring to Python.
7.0 is a float because it contains a decimal point.
0
ha correct
0
thanks