![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | find decimal separator Hi, (Kind of a repost) Is there a way to find out what the system's decimal separator and thousands separator characters are. GetLocale will get me an Locale ID, but it's settings can be overridden. I want to specifically know these two values. tia arno |
My System Specs![]() |
| | #2 (permalink) |
| | Re: find decimal separator arno wrote: Quote: > Is there a way to find out what the system's decimal separator and > thousands separator characters are. > > GetLocale will get me an Locale ID, but it's settings can be > overridden. I want to specifically know these two values. > If all else fails, you could use a "Brute Force" approach. That is, use the "FormatCurrency" method on some number, and then just use some character-by-character disassembly to examine the result to see what the separators are. cheers, jw ____________________________________________________________ You got questions? WE GOT ANSWERS!!! ..(but, no guarantee the answers will be applicable to the questions) p.s., if you don't mind calling the system api from script, then you would use the "GetCurrencyFormat" or "GetCurrencyFormatEx" api call. http://msdn.microsoft.com/en-us/libr...84(VS.85).aspx Aside from getting the separators right, if you are dealing with India or China, there are also different ways of "grouping", i.e., not everybody groups by three's. http://blogs.msdn.com/oldnewthing/ar...18/578251.aspx |
My System Specs![]() |
| | #3 (permalink) |
| | Re: find decimal separator Seems to do the trick, tx! arno On Fri, 21 Aug 2009 04:18:50 -0700 (PDT), Tom Lavedas <tglbatch@xxxxxx> wrote: Quote: >Your approach is not all that 'brute-force', since the input number >for the test is under your control. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Separator pages display incorrect user name in Vista | Vista General | |||
| Can I use Import-CSV when separator is semicolon? | PowerShell | |||
| Convert Decimal to Binary | PowerShell | |||
| Stock Gadget decimal places | Vista General | |||
| PInvoke and Decimal to Binary Conversion | PowerShell | |||