Page 1 of 1

Bug in Calc field

Posted: Thu Feb 08, 2018 4:29 pm
by agnar
The Calc field has a bug when dealing with Norwegian (Scandnavian) number formats.

When my form tries to sum up values in the the sub firm wich has the format "1.000,00", it doesn't reckon the "," as a decimal separator. Thus "1.234,56" is reckoned as 123456 when it sums up, and all my form numbers became 100 times bigger than they should.

Changing the format to "1000.00" solved the problem. This is a well known JavaScript problem.
calc_error.png

Re: Bug in Calc field

Posted: Thu Feb 08, 2018 5:56 pm
by admin
Agnar,

I think I have fixed that now and it's on Github.
format_2.PNG
Please let me know if it works for you.


Steven

Re: Bug in Calc field

Posted: Mon May 21, 2018 11:23 pm
by ahernandez
Hi Steven,

I have got the same problem with nuNumber field type. I have defined nuNumber as "€ 1.000,00" format, but when I try to enter a decimal number typing a comma it doesn't work. Just typing . as decimal point it works.

Could you help me ?

Thank you

Re: Bug in Calc field

Posted: Sat Sep 22, 2018 4:26 am
by toms
ahernandez wrote:Hi Steven,

I have got the same problem with nuNumber field type. I have defined nuNumber as "€ 1.000,00" format, but when I try to enter a decimal number typing a comma it doesn't work. Just typing . as decimal point it works.

Could you help me ?

Thank you
I was just wondering if that has been fixed.

Re: Bug in Calc field

Posted: Sun Sep 30, 2018 11:16 pm
by admin
ahernandez,

It should be fixed now.

Steven