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. :)
18 Comments
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:
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"
* @ammusionist * right? Having those options as toggles could be really useful...
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.
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.
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?
* @Ivo * MacOS doesn't have this option.
People use commas over in Europe, right? In the USA we use dots for that.
* @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
* @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.
* @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?
* @ammusionist * It's not a mistake, it's the correct way to write that in some places.
* @Josephbburg * Apologies. I was misled by this:
* @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?
* @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.
* @Josephbburg * as you said. In some places, not all. Blender is universal.
* @ammusionist * no, because it's the right way to write in Brazil and in a lot of other countries.