I am using the math.log10() function to compute the percentage of damage coverage a character. The value is affected by the character's deff_toughness skill. The skill can range 0-20. Here is the code:
double percentage_damage_reduced = (Math.log10(deff_toughness/2 + 1));
Now, i know any logarythms dont exist for values = 0. Thats why i added a +1. If you visualize this graph for x[0,20] its values range aprox from 0 to 1. But for deff_toughness = [0,1,2,3], the output is 0. Any ideas why?