Reformatting values for display to user


#1

throughout my UI, I have various widgets and related labels which are all referring to a value tree. 

I have one slider which sets some DSP that needs to be rather precise, 3 decimal places, so I set the slider to increment by .001. But I don't really want to show three decimal places to the user in the label next to the slider. (by the way, I'm not using the slider's built in labels to show this, I'm using a separate label which refers to the same value). 

Is there an easy way to reformat a value's text when I display it? 


#2

You could override the Slider::getTextFromValue() method?