Vanguard Software
Forecasting & Planning Solutions

contents.gifindex.gifprev1.gifnext1.gif

Range

Format: x .. y

Arguments: [num] x Lower limit and optional second element

[num] y Upper limit and optional step size

Returns: [num] A list of numbers between x and y inclusive

Description: The Range operator produces a list of numbers. Normally, the numbers are sequential from x to y in steps of 1. You can specify a different step size in either one of two ways. First, by specifying a pattern to follow (e.g., [x1,x2]..xn); or second, by explicitly specifying a step size (e.g., x1..[xn,step]).

Examples: 1..5 = [1,2,3,4,5]

5..1 = [5,4,3,2,1]

[1,1.5]..3 = [1,1.5,2,2.5,3]

1..[3,0.5] = [1,1.5,2,2.5,3]

See Also: List Literal, makelist

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Software  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis  |  Expert System Software  |  Market Research Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2009 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend