[Gambas-user] Issue 120 in gambas: One value in the example EVALUATOR uses the comma as decimal separator
gambas at ...2524...
gambas at ...2524...
Mon Oct 3 20:43:48 CEST 2011
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 120 by stephane... at ...626...: One value in the example EVALUATOR
uses the comma as decimal separator
http://code.google.com/p/gambas/issues/detail?id=120
1) Describe the problem.
In the example EVALUATOR (Menu File > Open example > Miscellaneous >
Evaluator), the default value for the parameter "a" is 0,5 (one half). It
implies that the decimal separator on the machine of the user is a comma
and if the users presses the button "Update result" it gets an error
message.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK 2.99.4
Revision: r4168
3) Provide a little project that reproduces the bug or the crash.
Open the example Evaluator (Menu File > Open example > Miscellaneous >
Evaluator) on a machine that uses the "." as decimal separator. Run and
click on the button "Update result" -> You receive an error message.
4) If your project needs a database, try to provide it, or part of it.
n/a
5) Explain clearly how to reproduce the bug or the crash.
See #3
6) By doing that carefully, you have done 50% of the bug fix job!
Suggestion on how to fix the bug: use a number without decimal by default.
So the change could be the following: access the web page
http://gambas.svn.sourceforge.net/viewvc/gambas/gambas/trunk/examples/examples/Misc/Evaluator/.src/FEval.form?revision=3824&view=markup
Change the line 27, replace 0,5 by 2 for example.
More information about the User
mailing list