You are here

public function UnitsEntity::containsDimensionlessMember in Units of Measurement 7.2

Test whether this mathematical expression includes a dimensionless member.

Whether this mathematical expression contains at least 1 dimensionless member.

Return value

bool Whether this mathematical expression contains at least 1 dimensionless member

Overrides UnitsMathematicalExpression::containsDimensionlessMember

File

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

Class

UnitsEntity
Units of measurement entity class.

Code

public function containsDimensionlessMember() {

  // TODO: should we simply return FALSE or we are to actually verify the
  // dimension of this unit?
  $dimension = $this
    ->dimension();
  return empty($dimension);
}