Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        public override NeoValue Pow(NeoValue other)
        {
            var otherNumber = other.CheckNumber();

            return(Reify(Math.Pow(AsDouble, otherNumber.AsDouble)));
        }
Ejemplo n.º 3
0
        public override NeoValue Div(NeoValue other)
        {
            var otherNumber = other.CheckNumber();

            return(Reify(AsDouble / otherNumber.AsDouble));
        }
Ejemplo n.º 4
0
 public override NeoValue BitXor(NeoValue other)
 {
     return(NeoInt.ValueOf(AsInt ^ other.CheckNumber().AsInt));
 }
Ejemplo n.º 5
0
 public override NeoValue Rsh(NeoValue other)
 {
     return(NeoInt.ValueOf(AsInt >> other.CheckNumber().AsInt));
 }