calculateResult

Parses an arithmetic expression from the given string, then return its result.

Any unknown alphanumeric token that is not a number or an element is considered as a variable.

Return

the result of the expression

Parameters

expr

the arithmetic expression to parse

See also


@JvmName(name = "calculateResultExt")
open fun String.calculateResult(): KthParsingAndCalculationResult

Parses an arithmetic expression from the receiving string, then return its result.

Any unknown alphanumeric token that is not a number or an element is considered as a variable.

Return

the result of the expression

See also