A Round Problem

dhk's icon

Another minor frustration: when displaying float numbers (in number boxes or umenus) there's often a lot more information than I like. I don't want to read -14.259999, I want -14.26. So I've tried various rounding methods, including integer number boxes, sprintf, but nothing seems to work.

Any ideas, anyone? Obviously, what I need is a non-audio kind of round~. I've even tried using the round~ object along with a pair of number~ objects (really a waste of cpu resources) - but it's not that hard to make those round~s output lots of illegal decimals.

Dag Henning

Gregory Taylor's icon

Perhaps the description of the Float Display Correction option as described in the Menus section of the Max "Getting Started" might provide you with some assistance.

LoneMonad aka don malone's icon