A Round Problem

Aug 1, 2006 at 12:50am

A Round Problem

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

#26995
Aug 1, 2006 at 1:23pm

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.

#81274
Aug 1, 2006 at 1:57pm
#81275

You must be logged in to reply to this topic.