eval

Evaluates a simple (does not contain functions) arithmetic expression.

  1. string eval(string exp, string op)
    static pure
    string
    eval
    (
    string exp
    ,
    string op
    )
  2. string eval(string exp)

Parameters

exp string

The arithmetic expression to be evaluated.

op string

Specific operation to be evaluated out of exp.

Return Value

Type: string

The evaluated arithmetic expression.

Meta