function units_operator_divide_isolate_operand in Units of Measurement 7.2
1 string reference to 'units_operator_divide_isolate_operand'
- divide.inc in plugins/
operator/ divide.inc
File
- plugins/
operator/ divide.inc, line 40
Code
function units_operator_divide_isolate_operand(UnitsMathematicalExpression $operand1, UnitsMathematicalExpression $operand2, UnitsMathematicalExpression $equal_operand, $operand_to_isolate) {
if ($operand_to_isolate == 1) {
return units_mathematical_expression_operator_construct(units_get_operator('multiply'), $equal_operand, $operand2);
}
else {
return units_mathematical_expression_operator_construct(units_get_operator('divide'), $operand1, $equal_operand);
}
}