6.5 = 2^2 + 2^1 + 2^-1
Binary representation = 110.1 = 1.101 * 2^2.

0.1 = 2^-3 + 2^-4 + 2^-7 + 2^-8 + 2^-11 + 2^-12 + ...
Binary representation = 0.001100110011... = 1.10010011... * 2^-3.

Dave

On Aug 7, 1:18 am, ankit sambyal <ankitsamb...@gmail.com> wrote:
> @programming love : 0.1 can't be represented accurately in binary. If u try
> to convert it into binary, it will not terminate. Try it !!  But 6.5 can be
> converted.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to