예제 #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);
 }