<div class="gmail_quote">On Sat, May 1, 2010 at 11:57 AM, Tim E. Real <span dir="ltr"><<a href="mailto:termtech@rogers.com">termtech@rogers.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Can I get some comments on an issue nagging me for years:<br>
Maybe I never learned some golden rule about floating point,<br>
 please correct me if I'm ignorant of some crucial technique or fact<br>
 which would help: ...</blockquote><div><br></div><div>Arbitrary precision arithmetic will take care of all these problems. At a great cost to performance: <a href="http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic">http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic</a> . </div>
<div><br></div><div>It's part of the Java Language: <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/math/package-summary.html">http://java.sun.com/j2se/1.4.2/docs/api/java/math/package-summary.html</a></div><div>
<br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal). BigInteger is analogous to Java's primitive integer types except that it provides arbitrary precision, hence operations on BigIntegers do not overflow or lose precision. In addition to standard arithmetic operations, BigInteger provides modular arithmetic, GCD calculation, primality testing, prime generation, bit manipulation, and a few other miscellaneous operations. BigDecimal provides arbitrary-precision signed decimal numbers suitable for currency calculations and the like. BigDecimal gives the user complete control over rounding behavior, allowing the user to choose from a comprehensive set of eight rounding modes.</blockquote>
<div><br></div><div>Arbitrary precision math has been part of the Lisp/Scheme world for a long time; it's also in the mainstream  via mathematica: <a href="http://groups.google.com/group/comp.soft-sys.math.mathematica/topics?pli=1">http://groups.google.com/group/comp.soft-sys.math.mathematica/topics?pli=1</a></div>
<div><br></div><div>-- Niels</div></div><div><a href="http://nielsmayer.com">http://nielsmayer.com</a></div><div><br></div></div>