Convert double to float in Java
Just cast your double to a float. Also notice that the primitive types can NOT store an infinite set of numbers:
Just cast your double to a float. Also notice that the primitive types can NOT store an infinite set of numbers: