How do I change AudioPrameterFloat decimal places / floating point precision?

I created a AudioParameterFloat. I set and get it using a juce::Value

It seems like only two decimal places are used. How can I change that?

Thank You!

I found the solution!

Previously, I used the smaller AudioParameterFoat constructor, which just requires a min,max and default value…

By using the bigger constructor, it is possible to adjust the floating point precision / decimal places by defining the normalisable Range with an interval Value .

You could also just set the number of decimal places/significant figures when you convert the value to a string using the lambdas you can pass into the AudioParameterFloat constructor:

1 Like