double to long Java

After knowing primitive data types and Java rules of Data Type Casting (Type Conversion), let us cast double to long. By memory-wise, double and long both take 8 bytes of memory. Even then, a double value cannot be assigned to a long (here, rules of casting does not work) as double carries a mantissa (value …

double to long Java Read More »