Skip to content

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

Description

@nooblag

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions