GNU bug report logs - #69448
30.0.50; Calc: Wrong unit conversion of sums

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Wed, 28 Feb 2024 05:50:02 UTC

Severity: normal

Found in version 30.0.50

To reply to this bug, email your comments to 69448 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to gnu.cognition199 <at> slmails.com, bug-gnu-emacs <at> gnu.org:
bug#69448; Package emacs. (Wed, 28 Feb 2024 05:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Heerdegen <michael_heerdegen <at> web.de>:
New bug report received and forwarded. Copy sent to gnu.cognition199 <at> slmails.com, bug-gnu-emacs <at> gnu.org. (Wed, 28 Feb 2024 05:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; Calc: Wrong unit conversion of sums
Date: Wed, 28 Feb 2024 06:49:17 +0100
Hello,

this bug had been originally reported by "Kepa
<gnu.cognition199 <at> slmails.com>" in emacs-help:

In Calc with this expression on top of stack:

3 m^3 / s + 70 m^3 / hr  [note: compatible units!]

u c
    - Old units: m^3/s
    - New utis: m^3/hr

==> 10870. m^3 / s

That's wrong - but would be correct with the same number and the
actually requested unit: The correct result is 10870 m^3 / hr.

Unit simplification (u s) before conversion leads to the correct result.

This bug is also present in 28.2.


Michael.




This bug report was last modified 66 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.