Add 1.000/4(0.250) to $e[3] (now 1.250); Set $e[4] = 10 (10*(1%4)) Add 1.250/3(0.417) to $e[2] (now 1.417); Set $e[3] = 10 (10*(1%3)) Add 1.417/2(0.708) to $e[1] (now 1.708); Set $e[2] = 10 (10*(1%2)) Add 1.708/1(1.708) to $e[0] (now 2.708); Set $e[1] = 0 (10*(1%1)) After: $VAR1 = [ '2.70833333333333', 0, 10, 10, 10 ]; Printing: 2