Just a word of advice - try not to exceed one billion because scratch won't display more than 7-ish decimal places in a variable.
Anyway... credit to my dad and Gregory-Leibniz, and WikiHow lol.