Im happy to live w/ some precision loss - extreme accuracy is not a requirement. All math is lossy even int * int operations overflow 25% of the time.
On Thu, Mar 17, 2011 at 12:57 AM, Eric Jablow <[email protected]> wrote: > On Mar 15, 11:28 pm, mP <[email protected]> wrote: > > I would like the ability to unite decimal and integers both referenced > > a numeric type. For example a multiply of a decimal and integer would > > result in a decimal result. However if both inputs are integers the > > number type would hold an integer internally. I guess i want something > > like hold numbers are handled in ruby/jruby but without the ruby > > overhead. > > If you want Mathematica™ or Maple™, you know where to find them. > Of course, your wallet will be a little light afterward. > > These are not really embeddable or lightweight, then again i have never really tried so i cant comment. > I noticed that you didn't ask for a Rational class; that's a tricky > one to > do efficiently. > > Respectfully, > Eric Jablow > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > > -- mP -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
