![]() | ![]() | ![]() | *coerce-contracted-interval-rationals-to-floats* | ![]() |
|
| [Variable] |
Purpose
Control automatic coercion of non-integer rationals to floats when
an interval is contracted into a non-integral point range by
expand-interval and nexpand-interval.
Package :gbbopen
Module :gbbopen-core
Value type A generalized boolean
Initial value nil
See also
expand-interval
nexpand-interval
> (let ((*coerce-contracted-interval-rationals-to-floats* 't))
(expand-interval '(2 . 5) -3))
(3.5 . 3.5)
> (let ((*coerce-contracted-interval-rationals-to-floats* nil))
(expand-interval '(2 . 5) -3))
(7/2 . 7/2)
>
The GBBopen Project
![]() | ![]() | ![]() | *coerce-contracted-interval-rationals-to-floats* | ![]() |