16-bit unsigned short integers that range from 0 through 0xFFFF
16-bit unsigned short integers that range from 0 to 0xFFFF
Which expression is better above?
Therefore, the writer has precedence and may assign the intended meaning if he or she feels it is necessary.
Here are some alternatives: from x up to and including y; starting from x ending in/with y; from x, not exceeding y; from x through to y, inclusive.
If you consider through as short for through to ("through beyond" wouldn't make sense), it becomes apparent why British English does not include y. However, if you look at through independently, you could imagine it passing the ending argument, as a thread passes through a needle.
In British English, "to" can be both inclusive and exclusive. "Through" isn't usually used in this way.
In American English, "through" is inclusive.
So it depends on your audience. To be safe, use something unambiguous: "through to", or "up to and including", or "to X, inclusive".