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

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: 69448 <at> debbugs.gnu.org
Cc: Kepa <gnu.cognition199 <at> slmails.com>
Subject: bug#69448: 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 1 year and 108 days ago.

Previous Next


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