Forums > MaxMSP

Big numbers in MAX and Java

March 13, 2006 | 8:12 pm

Recently learned that Max uses 32-bit atomsizes and cant perform basic arithmetic (division,) on numbers large enough to satisfy my needs. Java and Javascript was recommended to me but I dont know where to beging coding something that would not only interface with Max but also perform the necessary operations. Anyone have a reference, advice or solution to this problem? I need to divide numbers less than a billion as accurately as possible.


March 13, 2006 | 10:49 pm

Hi Timothy,

For an example of how to use the BigInteger class, please see
fibonacci.java. Reworking the ideas in that object with the
BigDecimal class should allow you to divide big numbers with whatever
precision you need.

Ben


Viewing 2 posts - 1 through 2 (of 2 total)