示例#1
0
 public static RationalValue ConvertFromInteger(IntegerValue value)
 {
     return(new RationalValue(value));
 }
示例#2
0
 public static ComplexValue ConvertFrom(IntegerValue value)
 {
     return(new ComplexValue(value));
 }
示例#3
0
 public bool Equals(IntegerValue other)
 {
     return(other != null && _numeratorValue == other.Value && _denominatorValue == 1);
 }
示例#4
0
 public bool Equals(IntegerValue other)
 {
     return(other != null && _dataValue.IsReal && _dataValue.Real == other.ToDouble());
 }
示例#5
0
 public ComplexValue(IntegerValue realValue)
 {
     _dataValue.Real = realValue.ToDouble();
 }
示例#6
0
 public static LiteralValue ConvertFrom(IntegerValue value)
 {
     return(new LiteralValue(value.ToString()));
 }
示例#7
0
 public static RealValue ConvertFrom(IntegerValue value)
 {
     return(new RealValue(value));
 }
示例#8
0
 public bool Equals(IntegerValue other)
 {
     return(other != null && _dataValue == (double)other.Value);
 }