Jump to content

how to convert fractional decimal to binary ?

Featured Replies

Convert the following fractional decimal to binary...

 

1/2 = 0.1

1/4 = 0.01

1/8=0.001

 

How this possible...

 

kindly help me..

1 and 8 are numbers or operands.

/ is often used as a numerical operator. The binary for it tells the computer oh I have to divide.

Then there is division using subtraction. Remember learning division in primary school? Computers have subtraction and addition.

 

Numbers only go to z bits of precision depending on computer. Also the computer language you use and the complexity of your function makes a difference.

http://msdn.microsoft.com/en-us/library/3b1ff23f.aspx

//Floating point quotient:    2.33333333333333 

14 bits of precision.

Edited by fiveworlds

In decimal-positional notation consider a number such as 12.34, which equals (base 10) 10*1 + 1*2+0.1*3+0.01*4 = 101*1+100*2+10-1*3+10-2*4.

 

In binary-positional notation consider 10.101, which equals (base 10) 2*1+1*0+0.5*1+0.25*0+0.125*1 = 21*1+20*0+2-1*1+2-2*0+2-4*1..

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.