16 public Type
From => typeof(
double);
21 public Type
To => typeof(BigInteger);
38 if (Value is
double d && Math.Round(d) == d)
40 Result = (BigInteger)d;
59 if (Value is
double d && Math.Round(d) == d)
61 Result =
new Integer((BigInteger)d);
Converts a double number to a BigInteger, if possible.
bool TryConvertToElement(object Value, out IElement Result)
Converts the object in Value to an object of type To, encapsulated in an IElement.
bool TryConvert(object Value, out object Result)
Converts the object in Value to an object of type To.
Type To
Converter converts objects to this type.
Type From
Converter converts objects of this type.
double Weight
Weight of the converter. An estimate of how well the converter performs, or how much information is r...
Basic interface for all types of elements.
Converts an object of one type to an object of another type.