Next: , Previous: Introduction, Up: Top


3 Ranges of numbers

Often one is faced with dealing with sets, or ranges of numbers. They can be a pain to parse, as well as to iterate over.

The rangel family of routines work on ranges of integers. Parsing of the ranges is done with rangel_parse. Iterating through them is done with rangel_next and rangel_reset. There are several routines for manipulating the minimum and maximum range values.

The rangef routines work on ranges of real numbers. Parsing of range specifications is done with rangef_parse. To determine if a real is within a range list, use rangef_in.

Errors are handled via range_perror.