clamp

fun clamp(x: Double, lo: Double, hi: Double): Double