Decimal Point or Comma

Next
 From:  Paolo (PAOLOLOBBIA)
2933.1 
Hi Michael,

For example when i want to modify the diameter of a circle from
100,2mm to 100mm i open the EDIT SIZE tab and add -0,2 after 100,2000.
The result is 2,0000mm which is not what i expect.
Playing around i discovered that the right input is 100.2mm-0.2mm.

The mixed use of a comma delimitor and a decimal point is a bit confusing.
Wouldn't it be better to use only a decimal point as delimiter?
Image Attachments:
Size: 13.9 KB, Downloaded: 6 times, Dimensions: 261x211px
Size: 13.9 KB, Downloaded: 4 times, Dimensions: 262x191px
Size: 13.7 KB, Downloaded: 6 times, Dimensions: 262x193px
Size: 13.6 KB, Downloaded: 5 times, Dimensions: 263x192px
  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.2 In reply to 2933.1 
Hi Paolo, thanks for reporting this problem.

> Wouldn't it be better to use only a decimal point as delimiter?

You can set things up that way if you want - MoI will use the decimal separator that is specified as your current preference in the regional settings for Windows.

If you want it to display a point instead of a comma, in Windows go to Control Panel > Regional and Language Options > Regional Options > Customize, and for the "Decimal symbol:" setting, put in a period there.

Once you have told Windows that you want to have numbers display with a point instead of a comma, MoI should also use that the next time you start it.


It looks like the problem in MoI is that you can only use a point as the decimal separator when entering an expression rather than a single number. I'll see if I can fix that up so that a comma will work in expressions when that is what is specified in your regional settings.

- 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:  Paolo (PAOLOLOBBIA)
2933.3 In reply to 2933.2 
Hi Michael,

Thanks the problem is solved.
I prefer a decimal point in case i have to share my files
with other persons.
  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:  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