You are here

public function UnitsEntity::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

includes/UnitsEntity.class.inc, line 75
Definition of UnitsEntity class.

Class

UnitsEntity
Units of measurement entity class.

Code

public function evaluate() {
  return is_object($this->decomposition) ? $this
    ->decompose()
    ->evaluate() : NULL;
}