Example #1
0
 public static double Cosh(ValueReader value)
 {
     return System.Math.Cosh(value.GetDoubleValue());
 }
Example #2
0
 public static double Log(ValueReader value)
 {
     return System.Math.Log10(value.GetDoubleValue());
 }
Example #3
0
 public static double ATan2(ValueReader y, ValueReader x)
 {
     return System.Math.Atan2(y.GetDoubleValue(), x.GetDoubleValue());
 }
Example #4
0
 public static long Ceiling(ValueReader value)
 {
     return (long)System.Math.Ceiling(value.GetDoubleValue());
 }
Example #5
0
 public static double ACos(ValueReader value)
 {
     return System.Math.Acos(value.GetDoubleValue());
 }
Example #6
0
 public static double ATan(ValueReader value)
 {
     return System.Math.Atan(value.GetDoubleValue());
 }
Example #7
0
 public static int Truncate(ValueReader value)
 {
     return (int)System.Math.Truncate(value.GetDoubleValue());
 }
Example #8
0
 public static double Abs(ValueReader value)
 {
     double val = value.GetDoubleValue();
     if (val >= 0) return val;
     return -val;
 }
Example #9
0
 public static double Sin(ValueReader value)
 {
     return (int)System.Math.Sin(value.GetDoubleValue());
 }
Example #10
0
 public static double Sqrt(ValueReader value)
 {
     return System.Math.Sqrt(value.GetDoubleValue());
 }
Example #11
0
 public static double Round(ValueReader value, ValueReader digits)
 {
     return (int)System.Math.Round(value.GetDoubleValue(), digits.GetIntValue());
 }
Example #12
0
 public static int Round(ValueReader value)
 {
     return (int)System.Math.Round(value.GetDoubleValue());
 }
Example #13
0
 public static double Log(ValueReader log, ValueReader b)
 {
     return System.Math.Log(log.GetDoubleValue(), b.GetDoubleValue());
 }
Example #14
0
 public static double Number(ValueReader value)
 {
     return value.GetDoubleValue();
 }
Example #15
0
 public static string Format(ValueReader value, ValueReader format)
 {
     return value.GetDoubleValue().ToString(format.GetStrValue());
 }