calculateResult

Parses an arithmetic expression from the given string using the default context, 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

expression

the arithmetic expression to parse

See also


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

Parses an arithmetic expression from the receiving string using the default context, 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