You are here

public function UnitsConstantMathematicalExpression::isLinear in Units of Measurement 7.2

Whether this expression is linearly decomposable.

Return value

bool Whether this expression is linearly decomposable, i.e. its decomposition can be plugged in into another mathematical expression via multiplication without losing sense

Overrides UnitsMathematicalExpression::isLinear

File

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

Class

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

Code

public function isLinear() {
  return TRUE;
}