5
Chat with our AI personalities
this isn't the fact that the binary number 11 will have decimal equivalent 11... instead it have decimal number 1011 for decimal equivalant 11.here is the alogorithms for converting the decimal number to binary equivalent...!!!#include#includevoid main(){ int i,n,j,b[100];clrscr();printf("Enter a Number:");scanf("%d",&n);i=0;while(n>0){b[i]=n%2;n=n/2;i++;}printf("\n\nBinary Equivalent:");j=i-1;for(i=j;j>=0;j--)printf("%d",b[j]);getch();}using this algorithms... the binary equivalent of any number is taken out...!!! enjoy... have any query... email at :- "devilllcreature@yahoo.com" thank you....!!!
Assuming you interpret the bits as an unsigned number, that would be 1111111111 in binary, or 1023 (210 - 1) in decimal.
In binary this would be written as 1011. This is because in binary (from right to left) the digits in this number mean: (1 * 20) + (1 * 21) + (0 * 22) + (1 * 23). This, of course, is equal to (1 * 1) + (1 * 2) + (0 * 4) + (1 * 8), which equals 1 + 2 + 0 + 8, which equals 11 (in decimal).
In binary, it would be 10111011
0.017 is a number which is given to 3 decimal places. The equivalent number, at four decimal places, is 0.0170 but any number in the interval (0.0165, 0.0175), when rounded to four decimal places would give 0.017 to three.