Open GoogleCodeExporter opened 8 years ago
The JSV format doesn't specifically round precision for floating point numbers
itself.
Unfortunately this issue is the result of .NET loosing precision when it
serializes the value, e.g.
double d = 0.4047479892171677;
Console.Write("Actual: 0.4047479892171677, From String: {0}", d.ToString());
//Prints
Actual: 0.4047479892171677, From String: 0.404747989217168
Original comment by demis.be...@gmail.com
on 15 Nov 2010 at 2:40
Thanks for the quick answer.
But it's very strange, because with a Xml Serialization or Binary serialization
there is no loss of precision.
I assume they are not using the ToString() method to get the value.
Once again, thanks for your answer.
Original comment by Baptiste...@gmail.com
on 15 Nov 2010 at 4:12
Original issue reported on code.google.com by
Baptiste...@gmail.com
on 15 Nov 2010 at 2:14