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

  • Thread starter Thread starter Iyafrady
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the concept of "odd bytes" in the context of counting them within the hexadecimal range from ff00 to ffff. Participants seek clarification on the definition of an odd byte and how to identify them programmatically.

Discussion Character

  • Conceptual clarification, Technical explanation

Main Points Raised

  • One participant asks for clarification on what constitutes an odd byte and the expected count of such bytes within the specified range.
  • Another participant suggests that odd bytes are those that end in 1, 3, 5, 7, or 9, hinting at the significance of the last bit.
  • A participant explains that even bytes correspond to even decimal numbers, while odd bytes correspond to odd decimal numbers, based on the last bit being 0 or 1, respectively.
  • There is a reiteration of the idea that the last bit determines whether a byte is odd or even, with agreement on this interpretation.

Areas of Agreement / Disagreement

Participants generally agree on the interpretation that the last bit of a byte determines its oddness or evenness, but the initial question about the expected count of odd bytes remains unresolved.

Contextual Notes

The discussion does not address how to programmatically count the odd bytes or any specific assumptions regarding the range or the counting method.

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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K