Jump to content

how to convert fractional decimal to binary ?


raja.mugavai

Recommended Posts

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
Link to comment
Share on other sites

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..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

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.