This is because of the range of float. The largest positive finite float literal is 3.4028235e38f. The smallest positive finite nonzero literal of type float is 1.40e-45f.
You will get a compiler error if you use a float literal out of the specified range like the following code
For more details have a look
here