Today I would like to take a little time and talk about a subject that is very important to understand when working in the digital audio domain, and that is how to convert between floating-point and decibel.  Know how to convert between these two will be very useful when you are working with dynamics such as compressors and limiters, or even just simple volume controls.  It is good to have a way to perceive the data that is familiar to us.

What Is a Decibel?

Decibel or dB is a measure of volume that is in the range of -96 to 0.  It has a logarithmic relationship to the floating-point range that we normally work with.  Decibel is used since our ears hear sounds in a logarithmic nature.

Decibel – To – Float

The equation for converting from dB to floating-point is as follows.

float = 10 ^ (dB/20)


where dB is a number in the range of -96 to 0.  This equation is extremely useful for when you have volume controls that are in dB. You can just convert to the floating point number which can be used as a scalar multiplier in your audio processing.

Float – To – Decibel

The equation for floating-point to dB conversion is just an inverse of the previous equation.

dB = 20 * log(float)


Domain and Range

It is very important to consider the domain and range of these equations.  Decibel-to-Float has a domain of {-96, 0}, and a range of {0.0000158, 1}.  The domain of the function can be lower than -96 but we want to cut it off here since that is the range commonly used.  Also when converting from Float-To-Decibel, we want to start the domain at 0.0000158 since that will give us the output of -96.  If we try to plug in 0 in this equation we will get an error.


I strongly recommend for you to get familiar with these equations since they are extremely useful when working in digital audio.

Sign up for our newsletter so you dont miss new deals and anouncements!

Please follow and like us:
Categories: AudioProgramming

1 Comment

Stephenhum · September 17, 2017 at 8:23 am

Она состоит из деревянного или металлопластикового каркаса Квартирный вопрос: дизайн кухни оранжевой, зеленой, фиолетовой, красной, сиреневой. Следующим шагом опалубка заполняется бетоном, его распределяют, а затем протыкают штыковой лопатой и аккуратно постукивают по опалубке, чтобы удалить из раствора воздух.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts


Convergence Multi-Band Compressor released!

Convergence Multi-Band Compressor After several long months of work, I am extremely excited to announce that Cut Through Recordings’ latest plug-in Convergence is released!  This is by far the most work I’ve ever put into Read more…


Summer update – AAX and Windows Installers!

AAX Native We are excited to anounce that Cut Through Recordings now offers AAX native format for all recent plugins.  This includes the following plugins M4 Multiband Compressor Entropy II EpicPRESS Faradelay POP Sound Shaper Read more…


M4 Multiband Compressor V2 Released!

The next version of the M4 Multiband Compressor is finally here, and it comes with a heap of improvements! Summary of changes Fine-tuned Input/Output meters Smoother and easier to read meters Text display of input Read more…