Set to 0 if we're below 0
This commit is contained in:
@@ -19,7 +19,7 @@ public class SafeDoubleConverter : JsonConverter<double>
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var decimalValue = reader.GetDecimal();
|
var decimalValue = reader.GetDecimal();
|
||||||
return decimalValue > 0 ? double.MaxValue : double.MinValue;
|
return decimalValue > 0 ? double.MaxValue : 0;
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user