1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-07-09 15:39:00 +00:00

Compare commits

..

No commits in common. "c10671768d46c3343d43e1737f2b32eb057256a5" and "417cf2f9ac05e6ca6ac57364c4601f25d7a62782" have entirely different histories.

View File

@ -106,7 +106,7 @@ namespace CryptoExchange.Net.Converters
if ((property.PropertyType == typeof(decimal)
|| property.PropertyType == typeof(decimal?))
&& (value != null && value.ToString().IndexOf("e", StringComparison.OrdinalIgnoreCase) >= 0))
&& (value != null && value.ToString().Contains("e")))
{
if (decimal.TryParse(value.ToString(), NumberStyles.Float, CultureInfo.InvariantCulture, out var dec))
property.SetValue(result, dec);