Пример #1
0
 protected override DynamicValue ExecuteInternal(DynamicValue operand)
 {
     return(new DynamicValue(Math.Sinh(operand.ToDouble(null))));
 }
Пример #2
0
        protected override DynamicValue ExecuteInternal(DynamicValue operand1, DynamicValue operand2)
        {
            int digits = operand2.ToInt32(null);

            return(Math.Truncate(operand1.ToDouble(null) * Math.Pow(10, digits)) / Math.Pow(10, digits));
        }
Пример #3
0
 protected override DynamicValue ExecuteInternal(DynamicValue operand1, DynamicValue operand2)
 {
     // TODO: check if Remainder in FDO is identical to Math.IEEERemainder
     return(new DynamicValue(Math.IEEERemainder(operand1.ToDouble(null), operand2.ToDouble(null))));
 }
Пример #4
0
 protected override DynamicValue ExecuteInternal(DynamicValue operand1, DynamicValue operand2)
 {
     return(new DynamicValue(Math.Round(operand1.ToDouble(null), operand2.ToInt32(null))));
 }
Пример #5
0
 protected override DynamicValue ExecuteInternal(DynamicValue operand1, DynamicValue operand2)
 {
     return(new DynamicValue(operand1.ToDouble(null) % operand2.ToDouble(null)));
 }