[ library(gfd) | Reference Manual | Alphabetic Index ]

# get_bounds(?Var, -Lo, -Hi)

Retrieve the current bounds of Var.

Var
  A (domain) variable or an integer
Lo
  Lower bound
Hi
  Upper bound

## Description

Primitive for retrieving the upper and lower bounds of Var. Lo and Hi return the minimum and maximum (respectively) of the variable's interval. If Var has not been declared before, it will be turned into a domain variable with default interval. If Var is an integer, Lo and Hi will be set to Var.

### Modes and Determinism

- get_bounds(?, -, -) is det

## See Also

get_min / 2, get_max / 2, get_integer_bounds / 3, get_finite_integer_bounds / 3, get_delta / 2, get_median / 2