calculate percent
Hi,
I want to calculate percentile from two values, both of which are of type double, i get an error message operator / can not be applied to double or string, i tried to convert to decimal and int32 but it throws an exception.
Is there any other way to perform devision of variable with type double?
Thanx.
I want to calculate percentile from two values, both of which are of type double, i get an error message operator / can not be applied to double or string, i tried to convert to decimal and int32 but it throws an exception.
Is there any other way to perform devision of variable with type double?
Thanx.
Comments
Looks like one of your operand is of String type. Try to convert both operands to double using ToDouble function:
[ToDouble(op1) / ToDouble(op2)]