Support en dash character (U+2013) as subtraction operator
Issue #1027
new
1–(0.15*.15) = 0.022500000000000
(0.15*.15) = 0.022500000000000
1-(0.15*.15) = 0.977500000000000
What's the difference? I retyped in the "1". I need a calculator I can trust.
Comments (4)
-
-
- changed title to Support en dash character (U+2013) as subtraction operator
- changed component to parser
- changed version to 0.12
- marked as enhancement
- marked as trivial
-
This also occurs with the U+2212 “minus sign” which the default Ubuntu calculator uses for subtraction, can cause confusion when copying over equations
-
U+2212 is actually what SpeedCrunch uses to replace the '-' character, so it is supported, but only in development builds probably.
- Log in to comment
The character you use for subtraction in first line is "en dash" (U+2013) which is not a valid subtraction operator. It is then ignored by SC which transforms the expression as
1(0.15*.15)
, that is, an implicit multiplication by 1.Keeping this issue open just in case we decide to accept en dash (U+2013) as a subtraction operator (Word replaces the minus character with this one in text, so it might make sense to compensate for that).