Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

base command for direct conversion of desired units #184

Closed
ZumyT opened this issue Nov 7, 2018 · 3 comments
Closed

base command for direct conversion of desired units #184

ZumyT opened this issue Nov 7, 2018 · 3 comments

Comments

@ZumyT
Copy link

ZumyT commented Nov 7, 2018

It would be nice to have a base command for direct conversion of desired units.
For example:

V -> base
= A⁻¹·kg·m²·s⁻³

@danieldjewell
Copy link

Not sure how it could (or would) impact things, but don't forget about the 2019 SI Redefinition ... Since eveything is now defined in terms of constants, one could theoretically deconstruct things into their base definitions....

Specifically for say the kilogram - which was previously defined as "the mass of the prototype kilogram" and is now defined in terms of constants... so, in that sense "1 kg" isn't a base unit from which others are defined, instead "1 kg" itself can be calculated based on the constants. Not sure how much of an impact this would have. Maybe something to think on.

@sharkdp
Copy link
Owner

sharkdp commented Feb 28, 2020

Thank you for the reference. I know about the new SI definition. I don't really see how it is related to this issue. Some units (e.g. second and meter) were defined like this even before the redefinition.

The main "algorithm" behind this feature request is already implemented. Insect shows the "base representation" when a user tries to convert to a unit that is not compatible. For example:

>>> 1V -> s

  1 V ➞ s

  Conversion error:

    Cannot convert unit V (base units: A⁻¹·kg·m²·s⁻³)
                to unit s

@sharkdp
Copy link
Owner

sharkdp commented Sep 26, 2023

Follow up ticket for Numbat: sharkdp/numbat#116

@sharkdp sharkdp closed this as completed Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants