0

Why is 7.0 stored as a float and 7 not? Aren't they both integers? Is it because of the .0?

Floats

19th Jun 2020, 3:37 AM
Kevin Barrera
Kevin Barrera - avatar
2 ответов
+ 4
Yes, it is. 7.0 is considered a float because it has a decimal point. I also doubt about this before and didn't really understand why a .0 matter. But that's the way it is :D
19th Jun 2020, 4:03 AM
Ipang
+ 1
THANK YOU SOOO MUCH!
19th Jun 2020, 4:05 AM
Kevin Barrera
Kevin Barrera - avatar