public function AbstractUnitsMathematicalOperator::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
- ./
units.module, line 1351 - Provide API for managing and converting units of measurement.
Class
- AbstractUnitsMathematicalOperator
- Abstract implementation of "mathematical operator" interface.
Code
public function containsDimensionlessMember() {
return $this->operand1
->containsDimensionlessMember() || $this->operand2
->containsDimensionlessMember();
}