03-07-2009, 07:00 PM
Is there any way to convert currency and decimals values from any language to English(us) quickly? without having them change the regional and language settings in windows?
Currency and decimal convertor
|
03-07-2009, 07:00 PM
Is there any way to convert currency and decimals values from any language to English(us) quickly? without having them change the regional and language settings in windows?
03-07-2009, 07:06 PM
Like "12,34" string to 12.34 number?
03-07-2009, 07:07 PM
yes and currency as well but the exact regional and language setting may be unknown so i was looking for a way to convert everything into English(us ) format
03-07-2009, 07:38 PM
let's assume that you have Lithuanian format in control panel -> regional
Macro str s="12,34 Lt" ;;Lithuanian currency format. Also can be without Lt, start with Lt, etc, but fails if it is some other currency
03-07-2009, 08:35 PM
ok maybe i'm missing something but that example makes it 1234 not 12.34 what i was looking for was a way to convert a string from any language to english(us) format currency or decimal.Convert it to that and then how convert it back to the format it was if needed. examples in german 500.000= 500,000 in us
03-07-2009, 09:09 PM
My example converts from user default format (which is set in control panel) to US format.
You cannot convert from any format if you don't know it and don't use user default format. For example, in "500,000", how you can know is the , decimal or thousands separator?
03-07-2009, 09:18 PM
Macro
str s
03-07-2009, 09:46 PM
ok i understand now tyvm
03-07-2009, 10:10 PM
Shows how to convert numbers, currency, time and date format from your locale to US locale and back.
Also can be useful as format converter. Function dlg_locale \Dialog_Editor |
« Next Oldest | Next Newest »
|