Well, I have an VB.net code which get the value from some XML fiels, no problem with it, the issue is that sometimes the values have different format, after the dot, and so when I try to convert the value to a number I get a wrong value.
My code to get the field:
qntXml As XmlNodeList = docXml.GetElementsByTagName("qCom")
qnt = Convert.ToDecimal(quantidadeXml(0).InnerText)
I used to divide the "qnt" field by 100, to get the right value, but it's not working anymore, as you can see below
<qCom>380.00</qCom>
<qCom>170.0000</qCom>
I get the "full" number, for example 38000 while I should get 380,00.
If anyone have an idea how to solve it with C# no problem too.