Range Type

Range Type

CUE Reference: https://cuelang.org/docs/tutorials/tour/types/bounds

Range Field

field_name: lowerBound & upperBound [& type]
  • Note: type is optional, if not provided it will be detected using the lowerBound and upperBound types.

Examples

Int & Float Range

int_range: >=1 & <4 & int float_range: >1.1 & <=3.3

CSV Example Output

int_rangefloat_range
13.090849207389269
22.7249495319480044
11.902682632156711
31.962837923372978

JSON Example Output

[ { "int_range": 1, "float_range": 3.090849207389269 }, { "int_range": 2, "float_range": 2.7249495319480044 }, { "int_range": 1, "float_range": 1.902682632156711 }, { "int_range": 3, "float_range": 1.962837923372978 } ]