You are here

public function UnitsConstantMathematicalExpression::toPostfix in Units of Measurement 7.2

Represent this mathematical expression in postfix notation.

Represent this mathematical expression in postfix (reverse polish) notation.

Parameters

array $options: Options regarding how to format this mathematical expression

Return value

string Postfix (reverse polish) notation representation of this mathematical expression

Overrides UnitsMathematicalExpression::toPostfix

File

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

Class

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

Code

public function toPostfix($options = array()) {
  return $this->constant;
}