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

Confusion with Plank's constant #41

Closed
mkxml opened this issue Feb 8, 2018 · 1 comment
Closed

Confusion with Plank's constant #41

mkxml opened this issue Feb 8, 2018 · 1 comment

Comments

@mkxml
Copy link

mkxml commented Feb 8, 2018

Hello.

Great workflow. I noticed that I can't currently convert between km/h or mi/h and another unit of speed.

In my country kph is not common, we use km/h all the time.

I noticed the workflow is confusing this notation with a division involving the plank_constant.

It works if I use conv 32km/hour mi/hour.

Also can't do, for example, conv 5760h min.

In some cases, should h just be mapped to 1 hour?

Should we change this behavior or keep it? What do you think?

@mkxml mkxml changed the title Confusion with plank constant Confusion with Plank's constant Feb 8, 2018
@deanishe
Copy link
Owner

In some cases, should h just be mapped to 1 hour?

Arguably, but Pint doesn't work that way. AFAIK, a name, like h, can only refer to one unit. That would have to be changed in Pint.

If you don't care about Planck's constant, you can redefine hour to include h as an alias, or you can use km/hr instead.

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

2 participants