roundToRange

fun Float.roundToRange(from: Float, to: Float, epsilon: Float = 1.0E-6f): Float