mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-07-09 23:48:38 +00:00
Compare commits
No commits in common. "c10671768d46c3343d43e1737f2b32eb057256a5" and "417cf2f9ac05e6ca6ac57364c4601f25d7a62782" have entirely different histories.
c10671768d
...
417cf2f9ac
@ -106,7 +106,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().IndexOf("e", StringComparison.OrdinalIgnoreCase) >= 0))
|
&& (value != null && value.ToString().Contains("e")))
|
||||||
{
|
{
|
||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user