You are here

public function UnitsConstantMathematicalExpression::__construct in Units of Measurement 7.2

UnitsConstantMathematicalExpression constructor.

Parameters

int|float $constant: Constant that should be held in this mathematical expression

File

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

Class

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

Code

public function __construct($constant) {
  $this->constant = $constant;
}