# Does “a value between two values” imply the two values are included within the range?

For example, if a there is a validation message that specifies that a number "must be a value between 1 and 100" does that imply that 1 and 100 are part of the allowed set of values?

I would suggest that 1 and 100 are not part of the allowed range as it states the value must be between 1 and 100. Therefore meaning more than 1 and less than 100.

Am I right?

-
Range inclusion is a FAQ dupe. – tchrist Oct 31 '13 at 17:04
– tchrist Oct 31 '13 at 17:19

I agree with your line of thinking because between should be 1 < x < 100.

However that isn't the common usage. I build a lot of web apps and we have focus groups we use and I have ran across this example many many times. When presented with a range it is common practice that if you use the word between that the high and low value of the range is included.

The wording would have to be changed to not include 1 and 100. Maybe, "Specify a (whole) number greater than 1 and less than 100."

So you have to think for the common person filling something out, not the true mathematical thinking (although I agree with you and have lost this battle a few times).

-
Thanks for agreeing at least its not just me and my way of thinking :) – Secret Squirrel Oct 31 '13 at 16:05
It can go back to choosies... Pick a number between 0 and 10 to guess the number of fingers I have up behind my back. You can pick 0 or 10. We should saying "ranging" not between... – RyeɃreḁd Oct 31 '13 at 16:09

If you don't want to go with the math notation (for which I, too, learned square brackets), the magic word you want is exclusive.

``````Pick a number between 1 and 100, exclusive.
``````

excludes the endpoints.

-
I would suggest making it even more explicit: "[...] non-inclusive". :) – Keep these mind Oct 31 '13 at 19:36

Use math notation:

(0, 100) - does not include 0 and 100 <0, 100> - include 0 and 100 (0, 100> - do not include 0, but 100

etc...

-
Ooh. I was taught [square brackets] not <angle-brackets>. – Andrew Leach Oct 31 '13 at 16:14
@AndrewLeach Me, too. Never saw the other ones. – tchrist Oct 31 '13 at 22:24