Range (computer programming): Difference between revisions

Content deleted Content added
Range of a variable: removed dubious statement (infinitely many values for a ''float''? quite an extraordinary claim, needs extraordinary reference)
Line 6:
 
==Range of a variable==
The range of a variable is given as the set of possible values that that variable can hold. In the case of an integer, the variable definition is restricted to whole numbers only, and the range will cover every number within its range (including the maximum and minimum). For example, the range of a [[signedness|signed]] [[16-bit]] [[Integer (computer science)|integer]] variable is all the integers from −32,768 to +32,767. However, for other numeric types, such as [[floating point]] numbers, the range only expresses the largest and smallest number that may be stored - within the range there will be infinitely many numbers that cannot be represented.
 
==Range of an array==