You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, that's bigger than double.MaxValue.
It happens because the "r" specifier was not used when converting the double to string with .ToString() to convert the double into a string (which causes it to overflow due to rounding).
You also need to update the FloatJitterTests.cs file (to use the "R" specifier in its ToString()), if you're using it.
There might be issues with "R" not properly round tripping on certain circumstances. See: https://msdn.microsoft.com/en-us/library/kfsatb94(v=vs.110).aspx An alternative would be use G17 instead, but that would add jitter and we would have to handle it differently.
Hi.
Today I have tried to serialize and deserialize double.MaxValue using this serializer and fall into this error caused when deserializing:
It only caused when using double.MaxValue as far as I know.
Any help is greatly appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: