What is an Odd Byte? Counting Odd Bytes from ff00 to ffff

  • Thread starter Thread starter Iyafrady
  • Start date Start date
AI Thread Summary
An odd byte is defined as a byte that has its last bit set to 1, indicating it represents an odd decimal number. The range from ff00 to ffff includes bytes that end in 1, 3, 5, 7, 9, as well as b, d, and f in hexadecimal notation. To count the odd bytes in this range, one must recognize that every second byte is odd, starting from ff01. This means that there are a total of 128 odd bytes from ff00 to ffff. Understanding the binary representation and the significance of the last bit is crucial for identifying odd and even bytes.
Iyafrady
Messages
26
Reaction score
0
I need to write a program to count the number of odd bytes from ff00 to ffff.I need clarification on what exactly an odd byte is.Anyone know the number i should expect?

-thanks
 
Physics news on Phys.org
Numbers that end in 1,3,5,7,9 ?
Hint, what's special about the last bit
 
idk, so
0000 0000 is even byte
0000 0001 is odd byte
0000 0010 is even byte
0000 0101 is odd byte
so even decimal numbers are even bytes and odd decimal numbers are odd bytes??If the last bit is 0, then its an even byte and if the last bit is 1 its a odd byte?

I don't know how to interpret what you said,
mgb_phys said:
Numbers that end in 1,3,5,7,9 ?
 
mgb_phys said:
Numbers that end in 1,3,5,7,9 ?
or b,d,f
Hint, what's special about the last bit
Bingo!
 
Iyafrady said:
idk, so
0000 0000 is even byte
0000 0001 is odd byte
0000 0010 is even byte
0000 0101 is odd byte
If the last bit is 0, then its an even byte and if the last bit is 1 its a odd byte?
Yep.
 
Back
Top