From Wikipedia, the free encyclopedia

"Signedness" ???

That's worse than min/max range! The range is always the same, it's just how we interpret that first bit. You can have only positive numbers, or you can shift the range halfway and have positive OR negative numbers ... but the same number of them. Wiki tables confuse the hell out of me, but if someone understands them, this article could be improved an aweful lot by turning this into something that makes sense.

The range of integer values stored in 2 bytes is always the same (2^16), and you're right that what these values represent depends on how you choose to interpret them. What this table is showing is how the specified programming language interprets them, i.e. what is the minimum and maximum values in that range. "Min range" in this context means "the minimum value in the range", but I will replace this with 'minimum value' as I think that is clearer. Signedness is (I think) correct. I have linked to the appropriate article, which will hopefully help people unfamiliar with the term. -- HappyDog 08:44, 23 December 2006 (UTC) reply

2^16

The "Common Sizes" table on this page lists the maximum value of an unsigned short integer to be "32,767 or 2^16 - 1". Isn't 2^16 - 1 equal to 65,535? —Preceding unsigned comment added by 18.208.0.171 ( talk) 00:11, 11 November 2008 (UTC) reply

Yes, all the numeric information in this article was in error. I've fixed it. Dcoetzee 01:34, 11 November 2008 (UTC) reply
From Wikipedia, the free encyclopedia

"Signedness" ???

That's worse than min/max range! The range is always the same, it's just how we interpret that first bit. You can have only positive numbers, or you can shift the range halfway and have positive OR negative numbers ... but the same number of them. Wiki tables confuse the hell out of me, but if someone understands them, this article could be improved an aweful lot by turning this into something that makes sense.

The range of integer values stored in 2 bytes is always the same (2^16), and you're right that what these values represent depends on how you choose to interpret them. What this table is showing is how the specified programming language interprets them, i.e. what is the minimum and maximum values in that range. "Min range" in this context means "the minimum value in the range", but I will replace this with 'minimum value' as I think that is clearer. Signedness is (I think) correct. I have linked to the appropriate article, which will hopefully help people unfamiliar with the term. -- HappyDog 08:44, 23 December 2006 (UTC) reply

2^16

The "Common Sizes" table on this page lists the maximum value of an unsigned short integer to be "32,767 or 2^16 - 1". Isn't 2^16 - 1 equal to 65,535? —Preceding unsigned comment added by 18.208.0.171 ( talk) 00:11, 11 November 2008 (UTC) reply

Yes, all the numeric information in this article was in error. I've fixed it. Dcoetzee 01:34, 11 November 2008 (UTC) reply

Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook