Decimal Point or Comma
All  1-3  4-7

Previous
Next
 From:  NightCabbage
2933.4 
Yes, this is an annoying thing.

I'm a games programmer, and I have to take this into account when saving and loading games.

Say I'm saving the position of a player (10.7, 2.5)

If someone from Australia saves the position, it will use the '.' as the decimal point, but if someone from Spain saves the position, it will use the ',' as the decimal point.

And if you save/load the wrong one, it will crash :P

Most cultures use the '.' as a decimal place, and the ',' as a delimiter, and this is the Invariant Culture settings used to save/load games.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2933.5 In reply to 2933.3 
Hi Paolo, I'm glad that it is set up the way you want now.

But actually this will not have any affect on sharing files with other people.

Whether you have a comma or a period for the decimal place separator is for MoI only a UI issue, the information that is stored in files is not different between either case.

So you can have whichever one you personally want for your own use.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
2933.6 In reply to 2933.4 
Hi NightCabbage - the way it mostly works in MoI is that numbers are actually stored as binary data instead of as text data which avoids that issue for storage.

The export formats that are text-based such as OBJ are only set up to have a . character for numbers, so for those formats MoI will use a . decimal separator regardless of your regional settings.

It's only in the program UI where numbers are displayed or typed in where it actually comes into play for MoI.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  NightCabbage
2933.7 
Good, that's the way to go :)

Storing numbers as text is too much of a hassle...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-3  4-7