ID:156503
Sep 20 2010, 10:44 am
|
|
Are there any libraries with datums built for handling extremely large numbers on BYOND? I couldn't find any in the search, but I was wondering if any were hidden. I'd rather not reinvent the wheel.
|
In response to OrangeWeapons
|
|
I believe those are in the search, but no they wouldn't help. y2k_UncondenseNum simply changes an existing num into text. pif_ComplexNumbers has math procs for itself, but it's also limited to a num (or two).
The library should create a datum that can store a number with an arbitrarily large number of digits. That datum should also include procs for at least addition and text conversion (for display). |
Hobnob has one:
http://www.byond.com/developer/Hobnob/bignum |
In response to DarkCampainger
|
|
Gah, I searched for "number" and "num", but not a combined word like "bignum". Thanks. =)
|
http://www.byond.com/developer/Popisfizzy/pif_ComplexNumbers
Or this?
http://www.byond.com/developer/Y2kEric/y2k_UncondenseNum