answersLogoWhite

0


Best Answer

0.00195 KB equals 2 bytes

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Convert 2 byte binary number to decimal?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

What is the largest decimal value that can be represented in binary using two bytes?

11b which is 1*2 + 1*1 = 3 would be for two bits. But a byte is 8 bits, so 2 bytes is 16 bits. The largest binary number is [2^16 - 1], which is 65535 (base ten)


What are the advantages and disadvantage of BCD number system?

AdvantagesMany non-integral values, such as decimal 0.2, have an infinite place-value representation in binary (.001100110011...) but have a finite place-value in binary-coded decimal (0.0010). Consequently a system based on binary-coded decimal representations of decimal fractions avoids errors representing and calculating such values.Scaling by a factor of 10 (or a power of 10) is simple; this is useful when a decimal scaling factor is needed to represent a non-integer quantity (e.g., in financial calculations)Rounding at a decimal digit boundary is simpler. Addition and subtraction in decimal does not require rounding.Alignment of two decimal numbers (for example 1.3 + 27.08) is a simple, exact, shift.Conversion to a character form or for display (e.g., to a text-based format such as XML, or to drive signals for a seven-segment display) is a simple per-digit mapping, and can be done in linear (O(n)) time. Conversion from pure binary involves relatively complex logic that spans digits, and for large numbers no linear-time conversion algorithm is known (see Binary numeral system).[edit]DisadvantagesSome operations are more complex to implement. Adders require extra logic to cause them to wrap and generate a carry early. 15-20 percent more circuitry is needed for BCD add compared to pure binary. Multiplication requires the use of algorithms that are somewhat more complex than shift-mask-add (a binary multiplication, requiring binary shifts and adds or the equivalent, per-digit or group of digits is required)Standard BCD requires four bits per digit, roughly 20 percent more space than a binary encoding (the ratio of 4 bits to log210 bits is 1.204). When packed so that three digits are encoded in ten bits, the storage overhead is greatly reduced, at the expense of an encoding that is unaligned with the 8-bit byte boundaries common on existing hardware, resulting in slower implementations on these systems.Practical existing implementations of BCD are typically slower than operations on binary representations, especially on embedded systems, due to limited processor support for native BCD operations.


Why does a java byte variable only hold a minimum value of -128 and a maximum value of 127. I dont get why only those range of 3 digits. Its just holding 3 characters really. Why not hold AB2?

A byte is 8 binary bits, each of which hold a value of 0 or 1 (true or false). When counting in binary, a value of 11111111 is the highest value a byte can hold, this is 255. It doesn't matter what programming language is assigning a value to the byte, the highest it can hold is 255. A 'signed' byte uses one bit for the sign, and 7 for the value. Hence 7 bits can show values of up to 128 either side. That's a positive value of 1-127, along with the 0, and then negative values of -1 to -128. Again, regardless of the system assigning the value, 8 bits can only produce 255 different combinations.


What does a byte represent?

A byte represented of 8 bits


What is the importance of an octal number?

Why do we use Octal? Octal comes into a close second. In octal, you can represent, at most, 3 bits with a single octal digit. So it's very easy to say 311 is 11 001 001. The problem with octal, as you can see, is that the 3rd octal digit can only goes as high as 3, so it does not represent a byte as cleanly as hex. Octal is used in Unix for permissions due to its 3-bit nature. If we take the three specific entitlements (read, write, execute) for a file, we find that it coincides very well with octal. That's why you see those really funky "chmod 744" commands, because they are octal representation of permissions, 111 100 100, or R-W-E, Read, Read for owner, group, world respectively (at least that is how it was explained to me). The leftmost bit represents the read flag, the middle one represents the write flag, and the rightmost flag represents execute. So if you wanted the permission for read-write, it would be 110, or 6. Read and execute would be 101 or 5. Additional Answer: Since Octal (base-8) and Hexadecimal (base-16) are powers of two, that means they map directly to binary. For instance, each character in a base-16 number corresponds to 4 bits. So if I have a 4-byte (32-bit) number in hex, I could write out the binary sequence without really thinking about it. Also, one digit could change, and it would only change those corresponding 4 bits. In decimal, changing one digit can change many or all of the bits. This is why it is easier for programmers to use Hex, because it is a direct representation of the binary sequence. I believe we adopted the decimal system because we have 10 fingers. In actuality, hexadecimal would be a much better system for everyone to use. Society as a whole would be more mathematically inclined if they began learning hex when they were children, and we just did away with decimal altogether. Hexadecimal is much more natural than decimal. Octal and hexadecimal numeration systems would be pointless if not for their ability to be easily converted to and from binary notation. Their primary purpose in being is to serve as a "shorthand" method of denoting a number represented electronically in binary form. Because the bases of octal (eight) and hexadecimal (sixteen) are even multiples of binary's base (two), binary bits can be grouped together and directly converted to or from their respective octal or hexadecimal digits. With octal, the binary bits are grouped in three's (because 23 = 8), and with hexadecimal, the binary bits are grouped in four's (because 24 = 16). Incidentally, hexadecimal notation is more popular, because binary bit groupings in digital equipment are commonly multiples of eight (8, 16, 32, 64, and 128 bit), which are also multiples of 4. Octal, being based on binary bit groups of 3, doesn't work out evenly with those common bit group sizing's.

Related questions

What does the decimal number 255 mean in binary?

255 as a decimal number (also known as a base 10 number) = 11111111 in binary (also known as a base 2 number). In binary, each digit is known as a bit, and 8 bits are known as 1 byte. 255 is the largest (positive) number you can make in binary using only 8 bits (1 byte).


How do you convert -10.5 into binary?

This has a very simples solution. You have to treat the integer part separately from the decimal part. Therefore, you simply convert the integer part (10) to binary, which becomes 1010. Let's work with the decimal part of the number (0.5): We get the decimal part and multiply it by our number system base, which is 2, the amount of times correspondent to our desire of decimal places for the number. 0.5 x 2 = 1.0 Since we only want one decimal place, we stop right now. We obtained the number 1.0, which is the same as 1, the number for the decimal binary. 10.5 = 1010.1 in binary. In byte representation: 1010.1000


The largest number that can be represented by one byte is?

The biggest number that can be represented in one byte is 11111111. Binary numbers have the ability to added together in a fashion similar to decimal numbers.


What are the procedure involved in calculating ip address?

The standard written format for an IP address is as 4 bytes written as their decimal values separated by periods. Just convert each decimal value to a binary byte and append them to make a 32 bit number. Reverse that to convert a 32 bit number to 4 decimal bytes separated by periods.


What are the Computer units?

BCD (binary coded decimal) - 4 bit Byte - 8 bit Byte


What is the binary code for 2?

Binary for the decimal number 2 is 10 (or 0000 0010 if you want it as a byte value) ASCII code for the decimal number 2 is 50 (Dec), 34 (Hex), 062 (Oct), 0011 0010 (Bin)


How do you convert text into binary in vb or c sharp code?

C# EXAMPLEString text="My sample data";System.Text.ASCIIEncoding encode=new System.Text.ASCIIEncoding();//convert to binary and store in a byte[]byte[] binaryArray=encode.GetBytes(text);


What is the address of the last byte in a 512 mega byte memory expressed as a decimal number?

The address of the last byte in a 512 mega byte memory, expressed as a decimal number, is 536,870,911.


How many megabytes are in 100 megabytes?

100, 104.858, or 95.367, depending on if you mean decimal to decimal, binary to binary, decimal to binary, or binary to decimal. Simply, decimal megabytes, used by the storage industry, is 1,000KB, where each KB is 1,000 bytes. Binary megabytes, used by programmers (such as Microsoft, Linux, etc) are 1,024 KB, where each KB is 1,024 bytes (2^10, or 0x0200). Converting from decimal to binary will yield a smaller number of megabytes, while converting from binary to decimal will result in more megabytes.


Is each byte in memory limited in size?

The true answer is yes and no Yes: in binary coded decimal and hexadecimal each byte is 4 bits long; in octal each byte is three bits long. No: in true binary theoretically there is no "last bit".


What does binary 01110111 equals in decimal form?

(01110111)2 = hexadecimal byte 77 = (119)10


In what class is the ip address 169.45.66.200?

Class B includes anything that starts with binary "10", or in decimal, 128-191 for the first byte.Class B includes anything that starts with binary "10", or in decimal, 128-191 for the first byte.Class B includes anything that starts with binary "10", or in decimal, 128-191 for the first byte.Class B includes anything that starts with binary "10", or in decimal, 128-191 for the first byte.