public static RationalValue ConvertFromInteger(IntegerValue value) { return(new RationalValue(value)); }
public static ComplexValue ConvertFrom(IntegerValue value) { return(new ComplexValue(value)); }
public bool Equals(IntegerValue other) { return(other != null && _numeratorValue == other.Value && _denominatorValue == 1); }
public bool Equals(IntegerValue other) { return(other != null && _dataValue.IsReal && _dataValue.Real == other.ToDouble()); }
public ComplexValue(IntegerValue realValue) { _dataValue.Real = realValue.ToDouble(); }
public static LiteralValue ConvertFrom(IntegerValue value) { return(new LiteralValue(value.ToString())); }
public static RealValue ConvertFrom(IntegerValue value) { return(new RealValue(value)); }
public bool Equals(IntegerValue other) { return(other != null && _dataValue == (double)other.Value); }