Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calcAddPercent(startPercent, thresholdPercent = 95) {
- let currentPercent = startPercent;
- let ballCount = 1;
- while(currentPercent < thresholdPercent) {
- currentPercent += (100 - currentPercent) * (startPercent / 100);
- ballCount ++;
- }
- return ballCount;
- }
Advertisement
Add Comment
Please, Sign In to add comment