float to long Java

After knowing Java rules of Data Type Casting (Type Conversion), let us cast float to long. By memory-wise, float takes 4 bytes of memory and long takes 8 bytes of memory. Even then, a float value cannot be assigned to a long (here, rules of casting do not work) as float carries a mantissa (value …

float to long Java Read More »