예제 #1
0
파일: GCODES.cs 프로젝트: hamlertools/OTWB
        public static string gfuncall(string fun, params string[] values)
        {
            StringBuilder sb = new StringBuilder(fun);

            for (int i = 0; i < values.Length; i++)
            {
                sb.Append(' ').Append(PCODE.Bracket(values[i]));
            }
            return(sb.ToString());
        }
예제 #2
0
파일: GCODES.cs 프로젝트: hamlertools/OTWB
 public static string Divide(string e1, string e2)
 {
     return(PCODE.Binary(e1, PCODE.Division, e2));
 }
예제 #3
0
파일: GCODES.cs 프로젝트: hamlertools/OTWB
 public static string Subtract(string e1, string e2)
 {
     return(PCODE.Binary(e1, PCODE.Subtraction, e2));
 }
예제 #4
0
파일: GCODES.cs 프로젝트: hamlertools/OTWB
 public static string Add(string e1, string e2)
 {
     return(PCODE.Binary(e1, PCODE.Addition, e2));
 }
예제 #5
0
파일: GCODES.cs 프로젝트: hamlertools/OTWB
 public static string Mult(string e1, string e2)
 {
     return(PCODE.Binary(e1, PCODE.Times, e2));
 }
예제 #6
0
파일: GCODES.cs 프로젝트: hamlertools/OTWB
 public static string Binary(string e1, string op, string e2)
 {
     return(PCODE.Bracket(string.Format("{0} {1} {2}", e1, op, e2)));
 }