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
When serializing and deserializing System.Decimal values, especially those with floating-point digits, there is a noticeable loss of precision. This can lead to incorrect values being processed in applications that rely on precise decimal calculations.
Reproduction
Divide System.Decimal::MaxValue by 10.
Serialize the Value using ConvertTo-Metadata.
Deserialize the serialized value using ConvertFrom-Metadata.
Compare the original and deserialized values.
Solution
Append 'd' Suffix during serialization to the string representation of the System.Decimal value. This ensures that during deserialization, the value is correctly interpreted as a System.Decimal and not mistakenly as a System.Double.
Problem
When serializing and deserializing
System.Decimal
values, especially those with floating-point digits, there is a noticeable loss of precision. This can lead to incorrect values being processed in applications that rely on precise decimal calculations.Reproduction
System.Decimal::MaxValue
by 10.ConvertTo-Metadata
.ConvertFrom-Metadata
.Solution
System.Decimal
value. This ensures that during deserialization, the value is correctly interpreted as aSystem.Decimal
and not mistakenly as aSystem.Double
.Example
The text was updated successfully, but these errors were encountered: