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

Feature Request: Period to Frequency #45

Closed
xhain opened this issue Mar 19, 2018 · 1 comment
Closed

Feature Request: Period to Frequency #45

xhain opened this issue Mar 19, 2018 · 1 comment
Labels

Comments

@xhain
Copy link

xhain commented Mar 19, 2018

As a user of the convert alfred workflow I want to be able to convert from frequency (Hz) to a period back and forth.

// Period (T) to Frequency (Hz)

Input: conv 5 s Hz
Output: 0.2 Hz

Input: conv 0.25 s Hz
Output: 4 Hz

Input: conv 1 ms Hz
Output: 1000 Hz

// Frequency (Hz) to Period (T)

Input: conv 1000 Hz ms
Output: 1 ms

@deanishe
Copy link
Owner

You need to define a Pint context in the custom definitions file.

Then you can use the context in conversions, as described in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants