Bignum

by Hobnob
Integer bignum storage and arithmetic [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Hobnob.bignum##version=10

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Hobnob.bignum##version=10

144 downloads
Version 1.0
Date added: Aug 20 2009
1 fan
Provides support for the storage and use of 'bignum' integers with an arbitrary number of digits. Procedures for standard arithmetic operations are provided.

Also includes a demo of a 24-digit integer four-function calculator to show how the bignums may be used.

Comments

Asielen: (Apr 18 2011, 11:08 pm)
Great library. Should be expanded for decimals though.

Edit: I went ahead and created a new bignum library from the ground up. It supports decimals and also is orders of magnitude faster.
http://www.byond.com/developer/Asielen/RealBignum