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