How float is considered a bigger variable than int?
Because both have the same 32bits.
It's not based on bits, it's based on range -- interestingly,
Java doesn't really care much about precision either.
Anyway, the range of an int is from -2,147,483,648 to 2,147,483,647. And the range of a float is from -3.40282346638528860e+38 to +3.40282346638528860e+38.
So, as you can see even though an int and a float are both 32 bits, a float covers a much bigger range. In fact, a float has a bigger range than a long, even though a long is 64 bits and a float is 32 bits.
Henry