Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11109

Re: SetLocale and automatic conversion

From "Mayayana" <mayayana@invalid.nospam>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: SetLocale and automatic conversion
Date 2015-07-11 11:45 -0400
Organization A noiseless patient Spider
Message-ID <mnrde4$c8l$1@dont-email.me> (permalink)
References <55a11266$0$2946$e4fe514c@news2.news.xs4all.nl> <mnr6mt$kin$1@dont-email.me> <55a1342f$0$2935$e4fe514c@news2.news.xs4all.nl>

Show all headers | View raw


| As far as I can tell its not at all customary, in the US, to write"three
| thousand four hundred dollar" as 4,3 dollar.     When that thousands
| seperator is used right of it should always be three digits: 4,300 dollar
| (correct me if I'm wrong please) .   In other words: the thousands 
seperator
| should only appear every third place from the right/the place of the 
decimal
| dot.  Or not at all.  Any other combination should result in an conversion
| error.
|

  I assume you meant 3,400. No, I've never seen
anyone write anything like 3,4 for 3,400. It's not
feasible as far as I can tell. There's no way to
deduce the number of zeros that follow. But VBS
doesn't seem to be doing that. From my tests it
seems to only have a bug where , and . are
concerned. Like your tests, my tests with 3,4
show WSH dropping the comma rather than
interpreting it.

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: SetLocale and automatic conversion "R.Wieser" <address@not.available> - 2015-07-11 17:22 +0200
  Re: SetLocale and automatic conversion "Mayayana" <mayayana@invalid.nospam> - 2015-07-11 11:45 -0400
    Re: SetLocale and automatic conversion "R.Wieser" <address@not.available> - 2015-07-11 19:03 +0200

csiph-web