###

» Tue Mar 11, 2014 4:52 pm

I'm stuck in the complicated percentage calculation.

It's actually not "per cent" (/100) it's "per total amount of all values of the X array row)

I am trying to figure out how I have to set up the equation.

Rolls is the total number of rolls and X0 is the total amount of the occurring X0 cases. I want to figure out at how many % X0 occurs:

Set Text:

round(rolls/x0*(array.At(0,0)+array.At(1,0)+array.At(2,0)+array.At(3,0)+array.At(4,0)+array.At(5,0)+array.At(6,0)+array.At(7,0)+array.At(8,0)+array.At(9,0))) & "% dynamic chance"

Edit:

Awesome! I figured it out. I had to swap "rolls/x0" to "x0/rolls". I will soon upload the .capx so everyone who will need this can look at it.^^

Edit 2:

Here is the .capx. On the top left you can see all rolls. On the left the static % chances given in the array. On the right side the dynamic case occurences.

Edit 3:

I updated the .capx so everyone, who needs this solution, can easily comprehend how it works.

You do not have the required permissions to view the files attached to this post.