Decimal Gain Grid for Simple EQ

Hi I’m tryna tune up matkat’s SimpleEQ and i want to have decimal for the gain. Actually its already in decimal steps but i can only see 1db,2db,3db n ect… on my knob. Does someone could help me for the displaying of the decimals?

// draw gain labels for grid

for (int i = 0; i < gains.size(); ++i)

{

    juce::String str;

    auto gain = gains[i];

    auto y = normYs[i];

    

    if (gain > 0.00f) str << "+";

    str << gain;

    

    auto textWidth = g.getCurrentFont().getStringWidth(str);

    juce::Rectangle<int> r;

    

    r.setSize(textWidth, fontHeight);

    r.setCentre(0, y);

    r.setX(getWidth() - textWidth - 3);



    g.drawFittedText(str, r, juce::Justification::centred, 1);

    

    str.clear();

    str << gain-24.00f;

    textWidth = g.getCurrentFont().getStringWidth(str);

    

    r.setSize(textWidth, fontHeight);

    r.setCentre(0, y);

    r.setX(3);



    g.drawFittedText(str, r, juce::Justification::centred, 1);

   

}