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

From: Mattias Engdegård <[email-masked]>
Date: Sun, 17 May 2020 14:18:24 +0200

17 maj 2020 kl. 13.57 skrev Andreas Schwab <[email-masked]>:

> 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.