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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
snoop
Newbie


Joined: 21 Feb 2004
Posts: 9
Location: Sweden

PostPosted: Tue Nov 16, 2004 4:05 am   

Decimals , to . eheh
 
Greets.
I have a problem. When i use floats i get "," as a decimal sign thing instead of ".". I'm guessing this is due to the fact that it's a standard in sweden (where i am) or something and isn't really zMUD's fault but maybe someone else have had this problem and solved it. Or maybe someone just knows how to solve it anyway.

This makes it hard to use the %format function since it takes the decimal value as another argument. ie 2.23 becomes 2,23 and '23' is recognized as a second (or third) argument.

Thx
*/Snoop
_________________
Reply with quote
Oracle
Apprentice


Joined: 29 May 2002
Posts: 121

PostPosted: Tue Nov 16, 2004 5:15 am   
 
Try the %replace() function.
Reply with quote
snoop
Newbie


Joined: 21 Feb 2004
Posts: 9
Location: Sweden

PostPosted: Tue Nov 16, 2004 8:52 am   
 
Actually it was a setting in win xp. Namely in the language settings you could change the sign from , to .
So there you have it if anyone else has the same problem.
_________________
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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