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

Document convinient unit definitions #545

Closed
ali-ramadhan opened this issue Dec 2, 2019 · 0 comments · Fixed by #548
Closed

Document convinient unit definitions #545

ali-ramadhan opened this issue Dec 2, 2019 · 0 comments · Fixed by #548
Labels
cleanup 🧹 Paying off technical debt documentation 📜 The sacred scrolls

Comments

@ali-ramadhan
Copy link
Member

We should document the following constant definitions in utils.jl, which I think are useful and make scripts more readable, but would be quite confusing if you didn't know that they are just Float64 constants.

const second = 1.0
const minute = 60.0
const hour   = 60minute
const day    = 24hour

KiB, MiB, GiB, TiB = 1024.0 .^ (1:4)

I'd also like to add constants for meter, centimeter (cm?), and kilometer (km?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup 🧹 Paying off technical debt documentation 📜 The sacred scrolls
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant