You are here

public function UnitsConstantMathematicalExpression::evaluate in Units of Measurement 7.2

Numerically evaluate this mathematical expression.

Return value

float Numerical value of this mathematical expression

Overrides UnitsMathematicalExpression::evaluate

File

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

Class

UnitsConstantMathematicalExpression
Implementation of "mathematical expression" interface for a constant.

Code

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