Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why multiplication by 4 and division by 10 in _done for a progress bar size of 40 in _left? #8

Open
nooblag opened this issue Jun 15, 2024 · 0 comments

Comments

@nooblag
Copy link

nooblag commented Jun 15, 2024

Hi there,

Thanks for a great little package.

This isn't an issue per-se, but not sure where else to ask the question (sorry). Just wondering why multiplication by 4 and then division by 10 in _done for a progress bar size of 40 in _left?

Can you explain how that part works? Just wanting to understand the maths/what's going on there.

let _done=(${_progress}*4)/10
let _left=40-$_done

Thanks!

@nooblag nooblag changed the title Why division by 4 in _done for a progress bar size of 40 in _left? Why multiplication by 4 and division by 10 in _done for a progress bar size of 40 in _left? Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant