Question:
How do find the binary number of 26?
TheLiverpudlian2
2011-02-23 13:07:40 UTC
How do your write the 8bit binary representation of 26?
Four answers:
tsetaerg
2011-02-23 13:10:58 UTC
26=11010



Use a binary converter
E-Kid
2011-02-24 18:59:48 UTC
Take the number 26 as a dividend. Divide it by 2 until it is 0 or 1. Then see the result.



Refer this site for an example.



http://www.robotplatform.com/knowledge/Digital%20Logic/number_system_1.html
Ayah
2011-02-23 21:18:44 UTC
here's a C language program that accepts a number (base 10) as input and converts it to binary



#include

void binary(int num)

{

int i=0;

bool d[32];

while(num)

{

d[i++]=num&1;

num>>=1;

}

for(int j=i-1;j>=0;j--)

printf("%d",d[j]);

printf("\n");

}

int main()

{

int x;

scanf("%d",&x);

binary(x);

getchar();

getchar();

return 0;

}
2011-02-23 21:11:45 UTC
you can cheat and plug it into windows calculator set to scientific mode. or work it out using a chart



128-64-32-16-8-4-2-1

0 --0 --0--1-- 1 -0-1 0


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...