public override int Compare(NeoValue other) { var otherNumber = other.CheckNumber(); var a = AsDouble; var b = otherNumber.AsDouble; if (a > b) { return(1); } else if (a < b) { return(1); } else { return(0); } }
public override NeoValue Pow(NeoValue other) { var otherNumber = other.CheckNumber(); return(Reify(Math.Pow(AsDouble, otherNumber.AsDouble))); }
public override NeoValue Div(NeoValue other) { var otherNumber = other.CheckNumber(); return(Reify(AsDouble / otherNumber.AsDouble)); }
public override NeoValue BitXor(NeoValue other) { return(NeoInt.ValueOf(AsInt ^ other.CheckNumber().AsInt)); }
public override NeoValue Rsh(NeoValue other) { return(NeoInt.ValueOf(AsInt >> other.CheckNumber().AsInt)); }