A Simple Scripts that allows you to store huge Positive (non-negative) numbers accurately in any base. Gamemaker's inbuilt numbers will only extend to a certain amount, with this library you can add and deduct positive numbers.
Can Add and Deduct numbers.
Can store from 0 to 999T (trillion) even can store from 1aa up to 999zz notation..
Can be used in Cookie clicker style games for example.
Usage:
// the valid notation is K, M, B, T, aa, ab, ac .. zz
global.tempMoney = Number_Convert_StringToArray("43ac");
var validnumber = "143"
var validnotation = "K" // K, M, B, T must be capitalize
// and the aa, ab, ac .. zz are all small
global.tempMoney = Number_Convert_StringToArray(validnumber + validnotation);
// or initialize by Array
global.money[0] = 300;
global.money[1] = 12;
global.money[4] = 89;
// global.money is now 89,000,000,012,300 total
// Adding Numbers String to String (eg. "123.45B", "100aa")
global.money = Number_Add_StringToString("2M","100K");
// Adding Numbers from String (eg. "123B", "100aa")
global.money = Number_Add_ArrayToString(global.money,"10.1B");
// Adding Numbered Array to Array
global.money = Number_Add_ArrayToArray(global.money,global.tempMoney);
// Deducting Numbers from String (eg. "123B", "100aa")
global.money = Number_Deduct_ArrayToString(global.money,"1.75K");
// Deducting Numbered Array to Array
global.money = Number_Deduct_ArrayToArray(global.money,global.tempMoney);
// Subracting Numbers String to String (eg. "123B", "100aa")
global.money = Number_Deduct_StringToString("200ba","345aa");
Note: -And dont use comma ","
End User Licence Agreement (EULA).