[DOUBT]Implicit Conversion

byte = 10; Compiler implicitly convert from integer literals to byte but
float f = 5.5; Here why 5.5 is not implicitly converted to double?

Hi @Amit1506,
It is not followed because we may lose information about the overall magnitude of the converted value.
We might lose some information regarding the least significant digits, hence float is not implicitly converted to double.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.