long to float Java

After knowing primitive data types and Java rules of Data Type Casting (Type Conversion), let us cast long to float as an example. A float carries a mantissa part (value of decimal point) where as long takes a whole number. Assignment of long to float is done implicitly. Observe the following order of data types. …

long to float Java Read More »