float to byte Java

After knowing primitive data types and Java rules of Data Type Casting (Type Conversion), let us cast float to byte. The byte takes 1 byte of memory and float takes 4 bytes of memory. Assigning 4 bytes of memory to 1 byte of memory requires explicit casting. Moreover, float takes a mantissa (float-point value) but …

float to byte Java Read More »