The shift << and >> operators only work on integer types. They actually shift the bits what make up the value left or right.
You can't do that to float or double or long double variables because the internal structure of those variables, how the bits are used is such that shifting them makes no logical sense.
Comment