The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 3 of 3

Thread: Class for HUGE numbers?

  1. #1

    Class for HUGE numbers?

    I'm making a game at the moment that uses big numbers. The Number class works perfectly up to somewhere around 1.00x10^300. I would like to use much higher numbers though if possible.

    I figure the way would be to create a new class that uses 2 numbers. One for the decimal part and another for the exponential part. Then presumably the numbers could go up to 1.00x10^(1x10^300).

    Anybody know a practical way to do this? Or of another solution?

    Thanks!

  2. #2
    Just wanted to add I obviously don't mind if the decimal part is rounded after 10 digits or so (just like it is with the current number class).

  3. #3
    If you're looking for an implementation:

    http://code.google.com/p/bigdecimal/

    If you're looking for ideas / theory / etc.:

    http://en.wikipedia.org/wiki/Arbitra...ion_arithmetic
    “Who were you, Krilnon, and how did you know so much about AS4?”
    The historian sighed as she gazed up at the sky and saw… not stars. A story.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012