Jump to content

Accept both comma and full stop for decimals

Recommended Posts



Would it be possible to accept both "," and "." as acceptable decimal separator, or give users a choice in the matter?


You typically end up in this situation if your base operating language is English, but your keyboard is not - it then becomes a bit of a guess as to what will happen when you press the "." button on the numeric keypad (yes, some of us like larger keyboards :) ).  Some software will follow system language, some will follow the keyboard language, and typically you have precious little influence in the matter (only  LibreOffice and its NeoOffice derivative have a setting for it in their "Languages" preference).


AD and AP both want a value of 4½ entered as "4.5" (system language), whereas "4,5" is what I end up with using the numerical keypad.  Rather than enter this as a bug and fire off a debate, how about being a bit smarter and develop an input routine that will accept either for numerical values?  I have yet to come across anyone who enters triad separators when keying in a number for data entry.


In case that gets too complicated, could a choice be added to the setup?



Regards, Binc


Warning: dark, twisted sense of humour.  Do not feed after midnight.

Wheat and BS intolerant.  Only use genuine Guinness to lubricate.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.