Page 1 of 1

comma-character as valid floating point

Posted: Wed Feb 03, 2010 3:06 pm
by diki
hi,

i'm used to inputting values with the number keys on my large keyboard; but the only punctuation on the number-keypad is the comma (,) which ZGE does not allow as a floating point in the property editor (log reports 'not a float value'). it'd be nice if it would :)

i really don't know how much of an effort this involves, so if it's too much hassle, i can still autohotkey my way out of it.

Posted: Wed Feb 03, 2010 5:28 pm
by kattle87
it'm more a matter of standard rather then effort... We could change that for sure, but....
Dunno... Ville, any opinion? A fast way to implement it is auto substitution of "," with ".", but do we want ZGE to look more like Visual basic rather than any other serious RAID? :D

Posted: Wed Feb 03, 2010 6:31 pm
by jph_wacheski
humm,. not sure, but I do belive that you can change the function of that key in windows settings,. as my American style keyboard has only a period on it's numpad I think this may be a eruopa VS americas issue???

Posted: Wed Feb 03, 2010 8:30 pm
by VilleK
Yes, it is a comma on the numpad on my Swedish keyboard too. I made a decision from the beginning to use "." as decimal separator in ZGE because I've had to chase down so many bugs with different local-settings over the years in other system, and I wanted to focus on other stuff instead. But allowing Windows local setting of decimals in property editor values definitely makes sense so I should fix that now if I can do so easily. The zgeproj-files should always use "." to make them independent of Windows setting. And also the scripts require "." just like in most programming languages.