MLTDTools icon indicating copy to clipboard operation
MLTDTools copied to clipboard

input string was not in a correct format error

Open kdru opened this issue 4 years ago • 3 comments

When I try to convert the model, I get an error A small window pops up and says "input string was not in a correct format". By default, my decimal separator is a dot. I changed the decimal separator to coma and have tried to run the program again. Now I get a huge error. Again about input string. 1 2

kdru avatar Jul 11 '20 10:07 kdru

Ah, decimal separators and globalization, what a nightmare... It seems to be the same problem in #25 (and #6 maybe). In a recent commit (f728db60a0eea9a11be92cf933631044725577dc) the unit of height is changed from meter (m) to centimeter (cm), so there will not be decimal points any more. (i.e. default height 1.6m -> 160cm) Please have a try on the latest CI build.

hozuki avatar Jul 11 '20 23:07 hozuki

Actually i figured out how can I bypass this problem Set the decimal separator to a dot and enter the height like 1.60, program will give two warnings but will work anyway of you press ok

kdru avatar Jul 11 '20 23:07 kdru

But still it's an unexpected behavior and should be considered as a bug. :)

hozuki avatar Jul 12 '20 04:07 hozuki