comnum.dbm2w#

comnum.dbm2w(p_dbm)#

Convert a power in dBm to watts, 10^{(P - 30)/10}.

Parameters:

p_dbm (float | array_like) – the power (dBm).

Returns:

the power (W).

Return type:

float | numpy.ndarray

Raises:

ValueError – for values that are not real numbers.

Examples

>>> import comnum
>>> comnum.dbm2w(30.0)
1.0