William M. answered 01/22/23
Computer/HS Instructor w/7+ years teaching Computer Science
Joshua S.
asked 01/16/23How many bytes are requires to represent the decimal number 3,175,000 in binary? How many bytes would it take to store this number?
William M. answered 01/22/23
Computer/HS Instructor w/7+ years teaching Computer Science
Aaron B. answered 01/16/23
Professional Software Engineer and Top-10 CS Program Graduate
3,175,000 is 1100000111001001011000 in binary. Each 1 or 0 represents one bit of information. 8 bits make 1 byte. The binary number mentioned previously has 22 bits in it, which would take 3 bytes to store. However, in the real world, and depending on the programming language and data type used to store this number, it may actually be more than 3 bytes. Hope this helps!
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.