private object _under_or_equal(INakoFuncCallInfo info) { double a = info.StackPopAsDouble(); double b = info.StackPopAsDouble(); return(a <= b); }
private object _over(INakoFuncCallInfo info) { double a = info.StackPopAsDouble(); double b = info.StackPopAsDouble(); return(a > b); }
private object _power(INakoFuncCallInfo info) { double a = info.StackPopAsDouble(); double b = info.StackPopAsDouble(); a = Math.Pow(a, b); return(a); }
private object _abs(INakoFuncCallInfo info) { double v = info.StackPopAsDouble(); v = Math.Abs(v); return(v); }
// Define Method public Object _wait(INakoFuncCallInfo info) { Double sec = info.StackPopAsDouble(); sec *= 1000; int msec = Convert.ToInt32(Math.Floor(sec)); Thread.Sleep(msec); return(null); }
public object _toDouble(INakoFuncCallInfo info) { return(info.StackPopAsDouble()); }
public object _toDouble(INakoFuncCallInfo info) { return info.StackPopAsDouble(); }
// Define Method public Object _wait(INakoFuncCallInfo info) { Double sec = info.StackPopAsDouble(); sec *= 1000; int msec = Convert.ToInt32(Math.Floor(sec)); Thread.Sleep(msec); return null; }
private object _power(INakoFuncCallInfo info) { double a = info.StackPopAsDouble(); double b = info.StackPopAsDouble(); a = Math.Pow(a,b); return a; }
private object _abs(INakoFuncCallInfo info) { double v = info.StackPopAsDouble(); v = Math.Abs(v); return v; }