Archive: How to determine the decimal delimiter?


How to determine the decimal delimiter?
Hello,

I need to determine the decimal delimiter of the platform, i.e. in Germany it would be "," as in "1,23423". In the US it would be "." as.

Any way to get this?

Cheers,
Snowbird


Use the System plug-in and the APIs described here: http://www.microsoft.com/globaldev/g.../wrg_nmbr.mspx


Try this dude:


;SetCompressor /FINAL "bzip2"
OutFile "Tester.exe"
Name "Tester"
Caption "Tester"
XPStyle "on"
;Icon "icon.ico"

!define LOCALE_SYSTEM_DEFAULT 0x400
!define LOCALE_USER_DEFAULT 0x800
!define LOCALE_SDECIMAL 0xE
!define MAX_PATH 260

Function ".onInit"
System::Call "kernel32::GetLocaleInfoA(i ${LOCALE_SYSTEM_DEFAULT}, i ${LOCALE_SDECIMAL}, t .r0, i ${MAX_PATH}) i r1"
MessageBox MB_OK|MB_ICONINFORMATION "This is your decimal delimiter -> $\"$0$\""
abort
FunctionEnd

Section "-boo"
;
SectionEnd

Also I'm going to put it in the Web Archive