The whole thing is slightly more complicated: without knowing about the reference magnitude, the dB digits are more or less meaningless.
AND: dB is thought to be an expression of power ratio, but is also used e.g. for voltage ratios.
For power ratios, the above formulas with the factor of 10 apply.
If it is about voltages or currents, the following applies: Vs = Vn * 10dB/20
resp. dB = 20 * log(Vs/Vn)
The factor of 20 adapts voltage, current and similar values to the power 'thinking' of the dB vaues, as power is proportional to the square of voltage or current.
Hope, this helps and does not add to the confusion :)
To add slightly to what Milo said, what he calls "Amp" is the ratio of power amplitudes of the signals you're comparing. So, amplitude of signal power divided by amplitude of noise power, for example.
The math is straightforward. Let's say that "Amp" is signal power divided by noise power. Call that Ps and Pn.
The whole thing is slightly more complicated: without knowing about the reference magnitude, the dB digits are more or less meaningless.
AND: dB is thought to be an expression of power ratio, but is also used e.g. for voltage ratios.
For power ratios, the above formulas with the factor of 10 apply.
If it is about voltages or currents, the following applies: Vs = Vn * 10dB/20
resp. dB = 20 * log(Vs/Vn)
The factor of 20 adapts voltage, current and similar values to the power 'thinking' of the dB vaues, as power is proportional to the square of voltage or current.
Hope, this helps and does not add to the confusion :)
dB is used to quantify the ratio of two values in logarithmic scale which conveniently represent very large or small numbers on a same scale.
For converting the ratio of two power values in dB, we use ans(dB) = 10*log10(ratio) and ratio=10(ans(dB)/10).
For converting the ratio of two voltage or current values in dB, we use ans(dB)=20*log10(ratio) and ratio=10(ans(dB)/20).
You can verify the concept of multiplicative factor of 20 and 10 using P = V2/R = I2*R and taking R=1.
For your information, dBm is used to quantify the value of Power (not a ratio) in logarithmic scale which is generally used in wireless communication and other areas.
dB is a relative measure, it is the proportional difference between to values in logarithmic scale, if you only has the value in dB you cannot extract the amplitude.
But there are exceptions where the values in dB can be converted to amplitude, they are the cases where is possible to determine the reference value
An example is dBv. In this case the value is measure respect to 1 volt.
For example a value of 10 dBv is 10^(10/20) = 3.1622 volts.
Other example is in sound, in this case the reference value is 10^-2 pascals.