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?
What is the actual data type of the field you are binding to. Does it come from XML, SQL, Access, or a Web Service?
Also what is the actual field formatting that is being used?
Thanx.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
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?
Mattia Saccotelli - 20 Dec 2004 10:56 GMT
I solved, it was a CultureInfo issue. Btw a percentage is stored as
(value you type) / 100, that's all.
> What is the actual data type of the field you are binding to. Does it come from XML, SQL, Access, or a Web Service?
> Also what is the actual field formatting that is being used?
>
> Thanx.