Comma vs. decimal point
Issue #51
closed
Originally reported on Google Code with ID 51
What steps will reproduce the problem?
1. write for instance "3,6 + 1,4" in the evaluation field
2. evaluate the expression
What is the expected output? What do you see instead?
In some locales the comma is used as the default for writing decimal
numbers. Users might therefore expect to see 5 or 5,0 as the result to the
above expression. Instead they get 3 which might be confusing.
So, either the commas should be replaced (again?) by decimal points or
there should be an error message instead.
What version of the product are you using? On what operating system?
SVN trunk rev. 462 (Linux x86)
Please provide any additional information below.
Reported by ogre.crewman
on 2007-06-18 08:17:00
Comments (5)
-
Account Deleted -
Account Deleted ``` Fixed in branches/0.8, will be merged in trunk later.
I opted by the simplest solution for now: the evaluator scanner performs a sanity check regarding existence of a non-correct decimal separator (according to the current settings). A wrong one is enough to mark the expression as invalid.
In the future, we can discuss about forbidding the input of the non-correct decimal separator by the user in the expression box. I guess that would also be a very good solution. ```
Reported by `helder.pereira.correia` on 2007-07-22 20:57:18 - Status changed: `Fixed`
-
Account Deleted Reported by `helder.pereira.correia` on 2007-07-22 22:12:29
-
repo owner -
assigned issue to
- edited description
- changed milestone to 0.8
- changed component to editor
-
assigned issue to
-
repo owner - changed status to closed
- Log in to comment
Reported by `helder.pereira.correia` on 2007-06-18 12:41:55 - Status changed: `Accepted` - Labels added: Milestone-0.8