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

number units #161

Open
davidlovelace-ifx opened this issue Sep 3, 2024 · 1 comment
Open

number units #161

davidlovelace-ifx opened this issue Sep 3, 2024 · 1 comment

Comments

@davidlovelace-ifx
Copy link

Testing out a simple equation of 17m * 2 (where m is meant to be "milli" since I set milli in at the prompt), the result comes out as "(17 meters) x 2" and displays a as "34m", ok display, but not "meters" and if I try 17m2, I get the same result.

Also, if I change the results format, when I type in (17m2, again selecting "milli") the result is 3410^6.

I tried a variant doing 17u*2 (selecting "micro" but got the result 34 with the comment: "- "μ" is not a valid variable/function/unit."

Finally, is there a way to simply force the use of number prefixes without the prompt and have the result display in number prefix format?

@hanna-kn
Copy link
Contributor

hanna-kn commented Sep 3, 2024

Unit prefixes should generally not be used without a unit.

In Qalculate, all prefix symbols/abbreviations, except k and M, require a unit. When you select a prefix from the completion menu, you are expected enter a unit symbol immediately after. Otherwise it would not possible to differentiate between m for milli and m for meter, G for giga and G for gravitational constant, etc.

Full prefix names are however always recognized without units (e.g. 17 milli × 2 = 0.034).

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