Function: math-check-unit-consistency
math-check-unit-consistency is a byte-compiled function defined in
calc-units.el.gz.
Signature
(math-check-unit-consistency EXPR UNITS)
Documentation
Give an error if EXPR and UNITS do not have consistent units.
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-units.el.gz
(defun math-check-unit-consistency (expr units)
"Give an error if EXPR and UNITS do not have consistent units."
(unless (math-consistent-units-p expr units)
(error "New units (%s) are inconsistent with current units (%s)"
(math-format-value units)
(math-format-value (math-get-units expr)))))