Change a variable using operators

3
I am trying to change a variable \$discountedPrice of type float/currency as follows: \$DiscountedPrice - (\$DiscountedPrice*\$PriceLineItem_iterator/Discount * 0.01) I am expecting the following result: 52- (52 * 10 * 0.01) = 46,80 The last part (* 0.01) is not processed so the result I am getting back is incorrect (-468) What is wrong here?
1

Theo, did you also tried:

\$DiscountedPrice - (\$DiscountedPrice*(\$PriceLine/Discount *0.01))

I thought the modeler calculates by the general math rules. So first * and : , then + - etc. Also the part between ( ) is handled first.

So in this example:

52- (52 * (10 * 0.01)) = 46,80

1

Tried both: \$DiscountedPrice - ( ( \$DiscountedPrice\$PriceLineItem_iterator/Discount ) * 0.01) and \$DiscountedPrice - ( ( \$DiscountedPrice\$PriceLineItem_iterator/Discount ) :100)

but without any result....

1

None of the solutions above are necessary. This calculation should work as it is. I have just tried it in a simple microflow and the outcome of my calculation is 46.8 just as you were expecting.

0

Perhaps you can try 0,01 instead of 0.01? Just a suggestion, I am not sure it's the right solution.