S
Serg
Hi. I have a problem with deserialization decimal value.
I have a simple class:
public class A
{
public decimal d;
}
The serialization a value 0.00000001 is OK. The file is
<?xml version="1.0" encoding="utf-8"?>
<A xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<d>1E-08</d>
</A>
If I try to do a deserialization I have an error. But if I
replace by hand
the value of the tag <d> to 0.00000001, I have no error.
How should I work with 1E-08 format?
I have a simple class:
public class A
{
public decimal d;
}
The serialization a value 0.00000001 is OK. The file is
<?xml version="1.0" encoding="utf-8"?>
<A xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<d>1E-08</d>
</A>
If I try to do a deserialization I have an error. But if I
replace by hand
the value of the tag <d> to 0.00000001, I have no error.
How should I work with 1E-08 format?