I want to calculate the logarithm of the transmitter.getETXPOW()
, what is BigDecimal
format.
BigDecimal power = transmitter.getETXPOW();
BigDecimal eirp = 10 * Math.log(power);
I received an error message, BigDecimal
can not be converted to double
.
Logarithm base is 10.