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.

Comments

  • edited 1:29PM
    Hello,

    Looks like one of your operand is of String type. Try to convert both operands to double using ToDouble function:

    [ToDouble(op1) / ToDouble(op2)]

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.