← All ideas
  • Published 4 Oct 2019

Comma , to work as dot . in Value Inputs? 1,5 = 1.5?

Very often I put a comma for inputs instead of dots and I always get an error message for this. 1,5 doesn't work and 1.5 does. But I don't think comma is really used in other places, so...

Why not make us able to use comma the same as dots? I know it's kinda silly, but an easy fix could be a good fix nonetheless. :)

63.6%

Development Status: Open

Upvote 7 Downvote 4
GabrielMoro
4 Oct 2019

18 Comments

ammusionist

I think this may be a more sophisticated request than it appears at first. If a number field has 1,000 entered, it could be correctly interpreted as:

  • 1000 (One Thousand) OR
  • 1 (One with 10³ precision)

Comprehensive Solution : As the language of the user is the defining factor, implementing this might mean creating separate numeric parsers for different languages / regions.

Simple Solution : A settings option: "Use commas as decimals in number fields"

2
GabrielMoro Author

* @ammusionist * right? Having those options as toggles could be really useful...

richard

I have a German keyboard and G x 1,5 on the number pad gives the same result as G x 1.5 on the keyboard. Correct behaviour. Using G x 1,5 on the keyboard (as apposed to the number pad) gives a wrong result ( moves 15 on x instead of 1.5) This is however correct as the "," on the keyboard is interpreted as a character and ignored by the grab instruction.

1
achim

For Germany, the decimal "point" is a comma as well. I can use it in all apps in OSX and Windows, only in Blender I have to change to the dot. Muscle memory most of the time makes me type a comma, sometimes not even realizing that the value I typed was not accepted. So I would welcome very much if the OS language settings would be taken into account.

In natural sciences, we tend to use dots for decimals. Digit-grouping by commas was used until about the turn of the century, but not so much anymore. Unless mixed with alphanumeric text, lists of numbers are mostly separated by semi-colons to avoid confusion with the comma. However, writing an in-line matrix is an exception where columns are separated by commas and rows by semi-colons.

Basically: It is a context- and user-dependent choice.

nunoalexconceicao

If you are using windows this is set on the region preferences, you can choose either comma or dot for decimal

* @nunoalexconceicao * That is at least consistent for the active user. Do other OSs have such setting too or should Blender feature it with an OS-override option?

1
GabrielMoro Author

* @Ivo * MacOS doesn't have this option.

Josephbburg

People use commas over in Europe, right? In the USA we use dots for that.

GabrielMoro Author

* @Josephbburg * in Brazil we mostly use commas. But I click on it by mistake also. I don't really see why not enable it both ways... Heh

Josephbburg

* @GabrielMoro * Cool, I thought it was just a European thing. We use commas to seperate zeroes in big numbers in the USA -- 1,000,000 is one million.

Could be because the parser tries to make it a list when you give it a comma. Maybe it's not an easy thing to change if you want consistent behavior in less simple situations.

ammusionist

* @GabrielMoro * Are you saying you want the developers of Blender to change the way that text is parsed for mathematical evaluations to cater for your mistaken keystrokes?

1
Josephbburg

* @ammusionist * It's not a mistake, it's the correct way to write that in some places.

1
ammusionist

* @Josephbburg * Apologies. I was misled by this:

Mislead Image

GabrielMoro Author

* @ammusionist * well it is ALSO a mistake. But it is the way we right numerals in Brazil. And a lot of other countries also. Since it isn't used for another purpose they could easily implement this. Do you see a reason they shouldn't?

GabrielMoro Author

* @ammusionist * no. Because this is the right way in Brazil and in other countries. I happen to click on the comma by mistake because it's what I'm used to and what I usually go for.

GabrielMoro Author

* @Josephbburg * as you said. In some places, not all. Blender is universal.

GabrielMoro Author

* @ammusionist * no, because it's the right way to write in Brazil and in a lot of other countries.