]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/calc/calc-units.el (calc-convert-exact-units): Improve the
authorJay Belanger <jay.p.belanger@gmail.com>
Thu, 29 Jan 2015 03:37:24 +0000 (21:37 -0600)
committerJay Belanger <jay.p.belanger@gmail.com>
Thu, 29 Jan 2015 03:37:24 +0000 (21:37 -0600)
  simplification.

lisp/calc/calc-units.el

index 33cbcac7a2db33bee6b7239e3afa3369f4bc7c1b..f3d02340fe32cb3a3da956c48527a66be96b878f 100644 (file)
@@ -544,7 +544,7 @@ If COMP or STD is non-nil, put that in the units table instead."
        (let ((res
               (list '* (math-mul (math-remove-units expr)
                                  (math-simplify-units
-                                  (list '/ old-units units)))
+                                  (math-to-standard-units (list '/ old-units units) nil)))
                     units)))
          (calc-enter-result 1 "cvxu" res))))))