Float precision with tosymbol and textbutton

    Aug 17 2019 | 12:42 pm
    so I have the following patch and can't seem to work out how to set the precision in the output to the textbutton. As far as I understand it the textbutton object requires to tosymbol transformation, which sets the precision 4. Any ideas?
    Thank you!

    • Aug 17 2019 | 2:56 pm
      What do You really need ? To have more or less decimal places ? Displayed in textbutton or at it's output ? Dealing with float precision display has allways been tricky in max. P.S. i remember this one using sprintf
    • Aug 17 2019 | 3:13 pm
      Here's my complete patch. I want the button to be able to show the fixed frequency OR the frequency range the vibrato lfo generates. To answer your question: less decimal places. Two. Thank you for your help!
    • Aug 17 2019 | 3:28 pm
      use sprintf as I posted, just set it to 2 decimal places
    • Aug 17 2019 | 4:10 pm
      That worked.
      Thank you!