Hi Igor,
Sure. One thing you could do is use a host method to operate on decimal values:
Another possibility might be to use a host method to cast decimal values to a type that VBScript can deal with:
Good luck!
Can you give me example?
Sure. One thing you could do is use a host method to operate on decimal values:
scripter.Script.add = new Func<decimal, decimal, decimal>((a, b) => a + b); Console.WriteLine(scripter.Evaluate("add(num1, num2)"));
scripter.Script.toDouble = new Func<decimal, double>(value => (double)value); Console.WriteLine(scripter.Evaluate("toDouble(num1) + toDouble(num2)"));