public double GetDoubleValue()
{
return Convert.ToDouble(Value);
}
public static ScalarValue Modulus(ScalarValue val1, ScalarValue val2) { if (val1.IsInt && val2.IsInt) { return(Create(val1.GetIntValue() % val2.GetIntValue())); } return(Create(val1.GetDoubleValue() % val2.GetDoubleValue())); }