Since attenuators are specified as giving an attenuation in db, is there a difference in calculating the resistor values when dealing with voltage and power attenuators? This is being asked since db for voltage equals 20log Vo/Vi and the db for power equals 10log Po/Pi. If there is a difference, how does one know if the attenuator is specified for voltage or power? I would like to know the formulas for calculating the resistor values.