1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-11 01:46:12 +00:00
This commit is contained in:
JKorf 2022-10-28 20:02:37 +02:00
commit 997e71f3b7

View File

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