Summary
Specifies the degree of strictness or leniency when converting a
JsonValue to a numerical type such
as
int
or
double
.
Enum values
| 4 |
The conversion succeeds if the object is a JsonBool, which will convert to 0 if false and 1 if
true. |
| 1 | The conversion succeeds if the object is a JsonString with numerical content. |
| 8 |
Allows conversion of non-integral numbers to integer types by truncation (rounding towards zero). If NumericConversionOptions.AllowConversionFromString is specified, strings containing a decimal part are also converted and
truncated when converting to an integer type. |
| 2 |
Ignored unless NumericConversionOptions.AllowConversionFromString is also specified. A conversion to an integer type
succeeds if the string contains a decimal followed by a zero fractional part. |
| 15 | Specifies maximum leniency. |
| 0 |
The conversion only succeeds if the object is a JsonNumber and its value is exactly
representable by the target type. |