why assignment of binary to float or double is causing an error.
here is my first code which works well-
float myFloat1 = 0b111; //prints 7.0
double myDouble1 = 0b111; //prints 7.0
here is the second code
float myFloat2 = 0b111f; //compiler complains ';' expected
double myDouble2 = 0b111d; //compiler complains ';' expected
In the second code compilers complains that ';' expected, what's going on in second code snippet? Any help will be greatly appreciated.