Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Jan 27, 2006 6:20 pm   

CMUD and MS windows regional settings.
 
I don't know what % of your target & existing markets would be affected but you might want to consider it.

See:
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=22947&start=0&postdays=0&postorder=asc&highlight=

Summary is the number 2.1 is represented as 2,1 on MS windows platforms with regional settings such as France. I know if I have an excel file full of floats on my English (USA) computer and go to a French (Canadian) XP machine it will automatically flip/flop the periods to commas and function normally.

The bad thing about the , is that it mixes up the paramters interpretation. Maybe a kludge for all people using that kind of regional setting by allowing some sort of {} around their odd numbers.

The issue that the underlying platform will not respond to period delimited floats decimals.
Reply with quote
perenico
Beginner


Joined: 07 Jun 2005
Posts: 23
Location: France

PostPosted: Sat Jan 28, 2006 10:14 am   
 
yeah I'm sorry, it's all my fault :(
thanks for your help though, it's appreciated
silly french heh Twisted Evil

btw, I'm used to use '.' for decimals
and I guess those who mud are as well, since most of them are english speaking. So, why not override MS settings on regional code, or disabe it, if possible.
_________________
-=-=-=-=-=-=-=-=-=-=-=-=
astaria3.com : 5000
character name : Vandemar
-=-=-=-=-=-=-=-=-=-=-=-=
Zmud : 7.21
-=-=-=-=-=-=-=-=-=-=-=-=
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23377
Location: Colorado, USA

PostPosted: Sat Jan 28, 2006 6:26 pm   
 
I'll give this some thought.

zMUD *used* to always use a . no matter what the regional settings were. But this caused some other problems so a few years ago zMUD was changed to use your Windows settings. But yes, since commas are used for function arguments, the the format command gets confused.

What I'd probably do is put the number in a variable, then use the variable in the format function:

#VAR Val "2,20"
#SHOW %format( 2, @Val)

or, try

#SHOW %format( "&0.2f", @Val)

to use the full format string in the first argument.
Reply with quote
perenico
Beginner


Joined: 07 Jun 2005
Posts: 23
Location: France

PostPosted: Tue Jan 31, 2006 9:06 am   
 
none of those work, unfortunately.
I'm sorry :(
_________________
-=-=-=-=-=-=-=-=-=-=-=-=
astaria3.com : 5000
character name : Vandemar
-=-=-=-=-=-=-=-=-=-=-=-=
Zmud : 7.21
-=-=-=-=-=-=-=-=-=-=-=-=
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net