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

Please add the ability to import custom units from a file #10

Open
vlad2305m opened this issue Apr 1, 2023 · 3 comments
Open

Please add the ability to import custom units from a file #10

vlad2305m opened this issue Apr 1, 2023 · 3 comments

Comments

@vlad2305m
Copy link

No description provided.

@stephtr
Copy link
Owner

stephtr commented Apr 2, 2023

What would be your use case? Would it be actually sufficient to have persistent variable/function definitions using the var := 10 m syntax (since implementation wise that would be easier)?

Edit: Qalculator now actually supports entering "customConstant := 1.2345" in the additional settings. If you have a use case not supported by this, feel free to reopen.

@stephtr stephtr closed this as completed Apr 2, 2023
@vlad2305m
Copy link
Author

I tried using the variables, and it works, but it still would be useful to have the SI prefixes and mixed units.
I only have 1 custom quality, so it's ok, but defining 2 is not possible with variables alone, so I think you should add this somewhere to your to-do list.

@stephtr stephtr reopened this Apr 6, 2023
@stephtr
Copy link
Owner

stephtr commented Apr 6, 2023

Ok.
You probably anyway know, but until that you could also define variations of your unit including the SI prefixes as separate variables. But yes, that's not the best way to go.

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