Office Equipment & Supplies Logo

Related Topics:

t
thembelihle Posted on Aug 19, 2018

How many binary bits are required to represent decimal numbers between 300 and 400

5 Related Answers

Anonymous

  • 258 Answers
  • Posted on Jan 16, 2009

SOURCE: programming in c

To convert numbers you can use the printf() function
printf("%d", x'FF') hex to decimal
printf("%o", x'FF') hex to octal

If you want to save the value in another variables use sprintf
e.g

a = x'FF';
b = sprintf("%d",a)


Ad

Anonymous

  • 81 Answers
  • Posted on Jul 09, 2009

SOURCE: Write a program that requires a positive number

Here the code in C#:

public static double whole(double num)
{
double temp=0;
do { num--; temp++; } while (num > 0);
return (temp - 1);
}
static void Main(string[] args)
{
double num, temp;
int count1=0, count2=0;
num = double.Parse(Console.ReadLine());
if (num > 0)
{
temp = num;
do { temp /= 10; count1++; } while (temp > 1);
do { num *= 10; count2++; } while (num - 1 != whole(num));
Console.Write("Left=");
Console.WriteLine(count1);
Console.Write("Right=");
Console.WriteLine(count2);
}
else
{
Console.WriteLine("Positive only!");
}
}
You can translate in to other language.
But this works only for number less then 11 digit or it's very slow.
Rate me please, thanks.

Anonymous

  • 33 Answers
  • Posted on Nov 12, 2009

SOURCE: A bit represents how many digits in binary code

1 digit is one bit, either 1 or zero in binary, so 8 bits shows 8 digits (10001011)

Anonymous

  • 1082 Answers
  • Posted on Aug 13, 2010

SOURCE: convert hexadecimal numbers to binary

Here you go:
http://tinyurl.com/2dup7x

How about 4 thumbs??

Anonymous

  • 252 Answers
  • Posted on Apr 19, 2011

SOURCE: Conversion Decimal to Binary back

Greetings,

Use the built-in windows calculator. (Start/Programs/Accessories/Calculator or Start/Run then type calc.exe and press Enter)

At the top click View then choose Programmer (for Win7) or Scientific mode for XP or Vista to convert.

Ad

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

45 views

Ask a Question

Usually answered in minutes!

Top Office Equipment & Supplies Experts

ADMIN Andrew
ADMIN Andrew

Level 3 Expert

73791 Answers

ADMIN Eric
ADMIN Eric

Level 3 Expert

42240 Answers

Brad Brown

Level 3 Expert

19190 Answers

Are you an Office Equipment and Supply Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...