GNU bug report logs - #10554
24.0.92; No units specified (dimensionless quantities in Emacs Calc)

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <winkler <at> gnu.org>

Date: Thu, 19 Jan 2012 05:27:02 UTC

Severity: normal

Found in version 24.0.92

Done: Jay Belanger <jay.p.belanger <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Jay Belanger <jay.p.belanger <at> gmail.com>
To: "Roland Winkler" <winkler <at> gnu.org>
Cc: 10554 <at> debbugs.gnu.org, jay.p.belanger <at> gmail.com
Subject: Re: bug#10554: 24.0.92;
	No units specified (dimensionless quantities in Emacs Calc)
Date: Sat, 21 Jan 2012 09:42:55 -0600
> We can define a trivial unit
>
> (add-to-list 'math-additional-units '(one "1" "One"))
>
> So every plain, dimensionless number in Calc can be converted to
> ones. "7" becomes "7 one",

This will automatically be done when "exact output units" option is
chosen.

>   Calc should interpret dimensionless numbers such as "7" equivalent
>   to "7 one" without the need to explicitly make this trivial
>   conversion in either direction.
...
> - If Calc finds a dimensionless number "7" on the stack, for unit
>   conversions it gets interpreted as "7 one"

This would break current convert-units behavior, where a dimensionless
number can be interpreted by the user as any unit.  This is why when the
user asks to convert a plain number, Calc asks for the old units.  Calc
was written that way on purpose, and is a feature of Calc's units
handling.





This bug report was last modified 13 years and 126 days ago.

Previous Next


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