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