Пример #1
0
 public static SmlInt Divide(SmlInt value1, SmlInt value2)
 {
     return(new SmlInt(value1.Data / value2.Data));
 }
Пример #2
0
 public static SmlInt Multiply(SmlInt value1, SmlInt value2)
 {
     return(new SmlInt(value1.Data * value2.Data));
 }
Пример #3
0
 public static SmlInt Minus(SmlInt value1, SmlInt value2)
 {
     return(new SmlInt(value1.Data - value2.Data));
 }
Пример #4
0
 public static SmlInt Add(SmlInt value1, SmlInt value2)
 {
     return(new SmlInt(value1.Data + value2.Data));
 }
Пример #5
0
 public static SmlInt Negate(SmlInt value)
 {
     return(new SmlInt(-value.Data));
 }
Пример #6
0
 public static SmlInt Modulus(SmlInt value1, SmlInt value2)
 {
     return(new SmlInt(value1.Data % value2.Data));
 }