Mercurial > emacs
changeset 80754:b69a2f917573
Replace missing exponent.
author | Jay Belanger <jay.p.belanger@gmail.com> |
---|---|
date | Mon, 25 Aug 2008 20:53:21 +0000 |
parents | 54fa0c487055 |
children | fad57aa21c2b |
files | lisp/calc/calc-units.el |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calc/calc-units.el Sun Aug 24 19:47:23 2008 +0000 +++ b/lisp/calc/calc-units.el Mon Aug 25 20:53:21 2008 +0000 @@ -1138,7 +1138,9 @@ (and un ud (if (and (equal (nth 4 un) (nth 4 ud)) (eq pow1 pow2)) - (math-to-standard-units (list '/ n d) nil) + (if (eq pow1 1) + (math-to-standard-units (list '/ n d) nil) + (list '^ (math-to-standard-units (list '/ n d) nil) pow1)) (let (ud1) (setq un (nth 4 un) ud (nth 4 ud))