Discord
Login
Community
DARK THEME

The PEMDAS Point Formula

are you ever trying to make a incremental but when you have boosts like +1 and x3 and you decide to buy those boosts like this 1+1 x3 = 6 or 1x3 +1 = 4 you notice how those are 2 different answers and you cant figure out how to order them to prevent stuff like that introducing the PEMDAS Point system instead of getting stuff like 1+1 X3 +2 -1 = 7 this PEMDAS system will instead order that last equation as 1+1+2-1x3 = 9 here is how you do it

     YourCurrencyGain = ((1 + BaseBoost - BaseDebuff) * MultiBoost / MutliDebuff) ^ ExpondentalBoost```

make sure you add a update = function() above the code

parentheses exponent multiply divide add subtract

I know what pemdas is

([1 + 8 - 2] * 3 / 2)^2 see how that inside bracket looks different that's the first bracket then the 2nd then the expondental so it works

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community