Skip to main content

Interval notation for version ranges

The interval notation for specifying a version range is as follows:

NotationApplicable rulesDescription
1.0x ≥ 1.0Minimum version (inclusive)
[1.0,)x ≥ 1.0Minimum version (inclusive)
(1.0,)x > 1.0Minimum version (exclusive)
[1.0]x == 1.0Exact version match
(,1.0]x ≤ 1.0Maximum version (inclusive)
(,1.0)x < 1.0Maximum version (exclusive)
[1.0,2.0]1.0 ≤ x ≤ 2.0Exact range (inclusive)
(1.0,2.0)1.0 < x < 2.0Exact range (exclusive)
[1.0,2.0)1.0 ≤ x < 2.0A combination of the smallest version that contains the indicated value and the largest version that does not contain the indicated value