To download this library for your Linux/Mac installation, enter this on your command line:
DreamDownload byond://Asielen.RealBignum##version=116Emulator users, in the BYOND pager go to File | Open Location and enter this URL:
This library gives you the ability to work with real numbers of any length. (Depending on your computer and your patience.)
It is both faster* and more versatile than previous BYOND bignum libraries. It can handle math with decimal precision and both positive and negative numbers.
Say you wanted to multiply:
13,563,757,534,732.345324 * -324,236,743.45
This library allows you to do so.
(The answer is: -4397868572007015915234.5951278)
Check out the reference here: http://files.byondhome.com/Asielen/RealBigNum.Asielen.html
Currently this library supports the four basic functions:
as well as number comparisons, rounding, and factorials.
More functions to come in the future.
*Here is a full evaluation of the speed:
(full excel results:
6/11/12 - Realized the link was broken. Fixed it
7/24/12 - v111
-Fixed some bugs and added a couple features
12/31/12 – v113
–Fixed a bug that didn't let you multiply in the demo
–Couple minor features
Copyright © 2023 BYOND Software. All rights reserved.