bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41347: 28.0.50; calculator.el: Cannot input negative exponents


From: Mattias Engdegård
Subject: bug#41347: 28.0.50; calculator.el: Cannot input negative exponents
Date: Sun, 17 May 2020 14:18:24 +0200

17 maj 2020 kl. 13.57 skrev Andreas Schwab <schwab@linux-m68k.org>:

> In commit f248292ede, there was
> 
> -                ((string-match-p "[eE][+-]?$" str) (concat str "0"))
> 
> so the bug is that the part matching "[+-]?" is now dropped.

In the commit you refer to, read-from-string was used; a partial input like 
"1e" had to be completed with an extra "0" to make the result a 
(floating-point) number. This no longer appears necessary since we use 
string-to-number and convert integers to float.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]