You are here

public function UnitsMathematicalOperatorNonLinear::evaluate in Units of Measurement 7.2

Numerically evaluate this mathematical expression.

Return value

float Numerical value of this mathematical expression

Overrides AbstractUnitsMathematicalOperator::evaluate

File

./units.module, line 1666
Provide API for managing and converting units of measurement.

Class

UnitsMathematicalOperatorNonLinear
Implementation of "mathematical operator" interface for non-linear operation.

Code

public function evaluate() {
  return $this
    ->decompose()
    ->evaluate();
}