8
Chat with our AI personalities
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!