Exemple #1
0
        public static StackValue AsDouble(this StackValue operand)
        {
            switch (operand.optype)
            {
            case AddressType.Int:
                return(StackValue.BuildDouble(operand.opdata));

            case AddressType.Double:
                return(StackValue.BuildDouble(operand.opdata_d));

            default:
                return(StackValue.Null);
            }
        }
Exemple #2
0
 public void Push(double val)
 {
     runtime.rmem.Push(StackValue.BuildDouble(val));
 }