fn fbound(val: f64, minval: f64, maxval: f64) -> f64
fbound: clamp into range, with C’s val < minval + 1 lower test.
fbound
val < minval + 1