Dear All,
i have doubt in floating point conversion to Binary...my problem is:-
[code]
5.62------binary is------->00000101.101000 (weather i am right?)
00000101.101000>>8----> what is result?(right shift)
[\code]
Dear All,
i have doubt in floating point conversion to Binary...my problem is:-
[code]
5.62------binary is------->00000101.101000 (weather i am right?)
00000101.101000>>8----> what is result?(right shift)
[\code]
Firstly, code tags use a forward slash /
Secondly, what's your question here? How floats are represented in binary? What happens when you right shift a float?
Be a bit more specific about what you want to know.
QuantumPete
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd
5.62 is not representable in binary notation without using a repeating decimal (you have 5 and 5/8, or 5.625).
If you're asking how that number is stored inside your computer, well, not like that (look up IEEE floating point if you really want to know).
I know of no context when (floating point thing) >> 8 makes any sense whatsoever.