8
8 bits if unsigned, 9 bits if signed
how many bits are needed to represent decimal values ranging from 0 to 12,500?
To convert a decimal into a fraction, place a 1 under the decimal number (to represent a fraction), move the decimal point to the right of the decimal number and add as many zeroes to the bottom number as the number of places the decimal was moved on the top number. Reduce the fraction to its lowest term. Conversion of given decimal number: .7 (place a 1 underneath to make a fraction) ,7/1 (move the decimal point to the right of the decimal number and add that many zeroes to the bottom number) 7/10 (this fraction cannot be reduced so it is the answer) Other example: conversion of .375 .375 .375/1 375/1000 (now reduce the fraction t its lowest term) 3/8
Assuming it is an unsigned int (i.e. no negatives) it would be 11111111111 which is 2047. Another way to think about it is 11bits can represent 2048 different values, and since it starts at 0 that would be 2048 - 1 which is 2047.
None. If you move the decimal point you will change the value of the number!
To represent an eight-digit decimal number in Binary-Coded Decimal (BCD), each decimal digit is encoded using 4 bits. Since there are 8 digits in the number, the total number of bits required is 8 digits × 4 bits/digit = 32 bits. Therefore, 32 bits are needed to represent an eight-digit decimal number in BCD.
5
103
8 bits if unsigned, 9 bits if signed
Count them: 643(10)=1010000011(2)
how many bits are needed to represent decimal values ranging from 0 to 12,500?
1200
8 (assuming unsigned numbers - i.e., you don't reserve a bit for the sign).
There are 16 decimal numbers that can be represented by 4-bits.
5 bits are 5 binary digits. If they represent a decimal number, then that number can be anything from zero to 31, and can have either 1 or 2 digits.
When you convert this decimal number to the binary format, we have 111001001 that has 9 digits so 9bits is required to represent it in normal case. To convert decimals to binary visit http://acc6.its.brooklyn.cuny.edu/~gurwitz/core5/nav2tool.html
A 4-bit binary number can represent (2^4 = 16) different values. This range includes all combinations of 0s and 1s that can be formed with four bits, ranging from 0000 (0 in decimal) to 1111 (15 in decimal). Thus, the values it can represent are 0 through 15.