[Bluej-discuss] I have reached Infinity
Todd O'Bryan
toddobryan at mac.com
Wed Nov 22 15:19:21 GMT 2006
Or you can check out the BigDecimal and BigInteger classes that come
with Java.
Todd
On Nov 21, 2006, at 11:48 PM, Josh Rountree wrote:
> This is often an exercise in a Data Structures course, with the
> idea that students develop their own class/object to handle the
> desired precision.
>
>
>
> From: bluej-discuss-bounces at bluej.org [mailto:bluej-discuss-
> bounces at bluej.org] On Behalf Of Bryan Luce
> Sent: Tuesday, November 21, 2006 10:08 PM
> To: bluej-discuss at bluej.org
> Subject: [Bluej-discuss] I have reached Infinity
>
>
>
> In playing with an simple program that uses exponents in
> calculation, I unintentionally found that 1.6E308 is that largest
> practical value in Java. Beyond that, Java considers the number to
> be "infinity".
>
> I want to push my calculations further than this number, but still
> maintain accuracy. Any suggestions?
>
> Bryan
More information about the bluej-discuss
mailing list