Vincent Lefevre on Mon, 12 Aug 2024 12:48:50 +0200


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

Re: Wrong error message from 2u


On 2024-08-12 12:04:36 +0200, Ruud H.G. van Tol wrote:
> >    P.S.  IMO, 2u should better be parsed (as expected by the user!).
> 
> Rather not. For example, 2e1 is already syntax, so can't also mean 2*e1.

Agreed. qalc (Qalculate) is quite horrible in this respect:

> 2e

  2 × e ≈ 5.436563657

> 2e + 1

  (2 × e) + 1 ≈ 6.436563657

> 2e+1

  2 × 10¹ = 20

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)