Пример #1
0
 public static SmlDouble Multiply(SmlDouble value1, SmlDouble value2)
 {
     return(new SmlDouble(value1.Data * value2.Data));
 }
Пример #2
0
 public static SmlDouble Divide(SmlDouble value1, SmlDouble value2)
 {
     return(new SmlDouble(value1.Data / value2.Data));
 }
Пример #3
0
 public static SmlDouble Add(SmlDouble value1, SmlDouble value2)
 {
     return(new SmlDouble(value1.Data + value2.Data));
 }
Пример #4
0
 public static SmlDouble Minus(SmlDouble value1, SmlDouble value2)
 {
     return(new SmlDouble(value1.Data - value2.Data));
 }
Пример #5
0
 public static SmlBool IsEqual(SmlDouble value1, SmlDouble value2)
 {
     return(new SmlBool(value1.Data == value2.Data));
 }
Пример #6
0
 public static SmlBool IsSmaller(SmlDouble value1, SmlDouble value2)
 {
     return(new SmlBool(value1.Data < value2.Data));
 }
Пример #7
0
 public static SmlBool IsGreater(SmlDouble value1, SmlDouble value2)
 {
     return(new SmlBool(value1.Data > value2.Data));
 }
Пример #8
0
 public static SmlDouble Power(SmlDouble value1, SmlDouble value2)
 {
     return(new SmlDouble(System.Math.Pow(value1.Data, value2.Data)));
 }
Пример #9
0
 public static SmlDouble Modulus(SmlDouble value1, SmlDouble value2)
 {
     return(new SmlDouble(value1.Data % value2.Data));
 }