It's a set of GML scripts that allow you to calculate bigger numbers, than what GM is capable itself with real values. The numbers are also very accurate, unlike GM, which suffers from weird inaccurate real values. The scripts, however, tend to be a bit on the slower side. Because all the calculation is done manually in pieces, it is going to take a lot more time. So, multiplying like a hundred numbers by itself will take several seconds to calculate.
Mainly the library is meant for like purposes where you need to have like large scores, and the GM's real values don't just provide enough accuracy for you.
Anyway, get it here:
http://koti.mbnet.fi/rithiur/risc/download...le. php?k=bigint
Sorry, but there is no example provided with it, as I was too lazy to actually make one. But you try something like importing the bigint.gml to a new game and then putting the following script in the room creation code:
CHUNK_SIZE = 6;
num1 = bi_new_string("12345678912345");
num2 = bi_new_string("98765432198765");
result = bi_multiply(num1, num2);
show_message(bi_to_string_format(result, " "));
game_end();EDIT: Oh, and I should mention: I haven't tested the library too much. It's more in the state of "it seems to work", but I have no guarantees. Even just before submitting this I found new bugs. So if you find any bugs in it, please let me know.
Oh, and bug reports, suggestions and comments are more than welcome.
This post has been edited by Rithiur: 21 August 2005 - 08:22 PM

Help

MultiQuote








