macro_rules! handle_float_intervals {
($scalar_type:ident, $primitive_type:ident, $lower:expr, $upper:expr) => { ... };
}Expand description
This macro handles the NaN and INF floating point values.
NaNvalues are always converted to unbounded i.e.NULLvalues.- For lower bounds:
- A
NEG_INFvalue is converted to aNULL. - An
INFvalue is conservatively converted to the maximum representable number for the floating-point type in question. In this case, converting toNULLdoesn’t make sense as it would be interpreted as aNEG_INF.
- A
- For upper bounds:
- An
INFvalue is converted to aNULL. - An
NEG_INFvalue is conservatively converted to the minimum representable number for the floating-point type in question. In this case, converting toNULLdoesn’t make sense as it would be interpreted as anINF.
- An