Ad
  • Default User Avatar

    Additionally, this solution computes the modifying percentage for each iteration:
    (1 + percent / 100)

    This is an unnecessary performance hit. The value should be cached before the loop body for this solution to qualify as a Best Practice.