I would call it cardinality (and indeed I have used it in that sense). It is strictly the cardinality of the set of all values a variable can take.

Edit: for example, a 16-bit integer can take exactly 65536 values. The cardinality of the set of all values that the integer can take is 655536.

Once you start to consider variables that have a range of valid values and also a range of invalid values (like a boolean with a bitwise value of 17), then you have to extend the concept somewhat, but you can still describe those values with set notation and the concept of cardinality still applies.

Edit: Yes, this is the mathematical set, not programming Set. If you were to apply the concept to the C# type short and derive the type short?, this would not have 65537 values, represented by the union of the set of 65536 values mentioned previously and one additional value, null. 

Is there a name for the number of values a variable can take?
I have a WordPress site hosted on my personal server. I will be unavailable by Internet for a little while, and I'd like to write up some posts for my blog.

Normally, you need to be connected to WordPress to start writing the blog, and it will do offline-saving automatically. But this is limited to one entry, per tab. I could use Notepad, but it doesn't have spell check built in. I could use Microsoft Word, but the "Paste from Word" leaves a lot to be desired.

What I'm looking for is a program that does the following:


Start a new post while offline
Lets me edit posts I created already with the program
Spell check
Uploads new posts when I reconnect
Has the same features as the online editor (i.e. toolbars, WYSIWYG and code editor)
Free (as in beer)
Works on either Windows or Mac OSX


Bonus features:


Edit posts currently on the website (with an offline copy)

