Something that’s bugged me ever since I started doing C++/DSP programming is that many of my floats in Visual Studio aren’t what they’re supposed to be.
For example, here I’m hovering over the 1.35f default value in my parameter tree, and instead, Visual Studio has assigned it 1.3500000024 for its value:
Why on earth does this happen? I see it in the final synth as well, for example, if I save the parameter tree to a preset, and open that in a text editor, sure enough, the value will be “1.3500000024”.
Is there any reason this happens and should anything be done about it?