evaluateInput

fun evaluateInput(text: String, current: Double, range: ClosedRange<Double>? = null): Double?(source)

The value of the typed text: a number or arithmetic, like 2*pi or _ / 2, with the constants pi, tau and e, and _ for current; a percentage is of range, from its minimum, or a fraction without one. Null when the text is not a value.