Here you can find the source of powerLevelToDb0(double value)
public static double powerLevelToDb0(double value)
//package com.java2s; public class Main { public final static double MIN_GAIN = -100.0; public static double powerLevelToDb0(double value) { double result = powerLevelToDb(value); if (result < MIN_GAIN) return MIN_GAIN; return result; }//from w w w. j av a 2 s.co m public static double powerLevelToDb(double value) { return 10.0 * Math.log10(value); } }