You are here

function units_operator_subtract_dimension in Units of Measurement 7.2

1 string reference to 'units_operator_subtract_dimension'
subtract.inc in plugins/operator/subtract.inc

File

plugins/operator/subtract.inc, line 28

Code

function units_operator_subtract_dimension($dimension1, $dimension2, $operator1, $operator2) {

  // We require 'dimension check', so both provided dimensions must be the same,
  // and since subtraction does not actually alter resulting dimension, we just
  // return the first dimension.
  return $dimension1;
}