Description

Fully compatible with GMS:1 and GMS:2

A set of scripts that allows you to store huge non-negative (to be added) numbers accurately in any base (Cookie clicker style games for example). Gamemaker's inbuilt numbers will only extend to a certain amount, with this library you can infinitely add, subtract and multiply integers. You can use any base you like and supply your own alphabet (allows using hexadecimal numbers etc).

Useage: (much, much larger numbers can be used but smaller values are shown for simplicity)

i = "100";
i = add(i, 1); // i == "101"

add("100", -50, "300", "-20") //   returns "330"
mult("3148275", 245) //   returns "771327375"
bignumber_a_greaterthan_b("100", "1"); //  returns true

bignumber_format("1000000", 2); //returns 1.00 million

var a = add("10", "2"), b = mult("6", 2);
if (a == b)
    show_message("This message will show!");

math_set_alphabet("0123456789ABCDEF");
math_set_radix(16);
add("8AB", "B7F"); //   returns 142A

More Assets:

End User Licence Agreement (EULA).

Changes in 0.9.1

Added bignumber_format(number[,precision]) to show numbers in a user friendly way (has a dictionary that can be changed). Shows numbers like: 1.00 million, 30.4k, etc etc.

Version 0.9.1. Published December 29, 2016

Created with GameMaker: Studio v1.4.1749

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Anonymous 05 August 2017

good for cookie clicker!!


Gravatar

Randolf R 14 May 2017

Works well, ported to GM:S2 without any problems.

Very useful scripts, thank you!


Gravatar

Ata N 02 February 2017

Hey.. Wha a good..

Idea!
This can be so useful for calculate quickly and efficiently any formula based on substraction/multiplication and addition.

Also, the number check/format-To-String is a great welcomed too !

Thanks !

Logo

Taylor Dale (Publisher) 05 February 2017

More than welcome, thanks for leaving a rating!

Package contents

Total size 4.68 KB

What is the issue?

Back to Top