In comp.lang.javascript message <4a4a4ea5$0$3611$426a74cc (AT) news (DOT) free.fr>,
Tue, 30 Jun 2009 19:43:03, sloubi <sloubi (AT) top (DOT) fr> posted:
S'il vous plaît ne pensez pas que les abréviations qui peuvent être
d'usage en français seraient satisfaisante en anglais; on ne devrait
jamais introduire les abréviations lors de l'écriture d'une langue avec
laquelle on ne parle pas couramment.
Quote:
I have an application where user can fill float values into <INPUT
I have to localize my application according to the user definition, not
according to the browser.
So, in France I need the comma, in England it's the dot.
I know the rought solution consisting in 'replacing" dot by comma or
reverse, but:
- it's not clean
- it raises performance considerations, as I manipulate hudge pack of
numbers (matrix or table). |
Have you determined whether the necessary substitution will have a
perceptible influence on performance? Firefox 3, 3GHz P4, can convert
"12345,67" to "12345.67" in under 5 us. Very few users can type a
number accurately in less than 200 ms.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)