I know double is 64 bits and float is 32 bits:
Float:
1 bit for the sign
8 bits for the exponent
24 bits for the fraction
Double:
1 bit for the sign
11 bits for the exponent
53 bits for the fraction / mantissa
Question is, how do we convert them to each other manually? (I know precision will be lost).
Is is just a 32 bit right shift to convert double to float?
And 32 bit left shift to convert float to double?