decimal and percentage issue

M

Mattia Saccotelli

I noticed a weird behavior using decimal numbers. (I'm using italian
regional settings)

If a textbox is supposed to contain a percentage (or even a number) the
result is displayed multiplied by 100: for an actual value of "12" what
I see is "1200,00" (even if in the managed code I got the correct
value). If I insert "12" that's ok, I get the correct value both in the
xml and in the textbox. If I insert "12,00", "12,00" is displayed, but
the value become "1200" and my percentage is meaningless! If I insert
"12.00" I get "1200,00" both in the xml and in the textbox, screwing up
again. The same behavior with currency, set to euro.

Is infopath able to deal with percentages and to sum decimals?
 
M

Mattia Saccotelli

I solved, it was a CultureInfo issue. Btw a percentage is stored as
(value you type) / 100, that's all.
 
Top