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

Unit for very small or very large numbers #289

Open
berkdemir opened this issue Mar 14, 2024 · 8 comments
Open

Unit for very small or very large numbers #289

berkdemir opened this issue Mar 14, 2024 · 8 comments

Comments

@berkdemir
Copy link

Hi,
I wished this worked. Any workaround?
ε_f_120 = ε_ca + ε_cd_120y|10^-6

@hildebrandopsj
Copy link
Sponsor Collaborator

Hi, you can use permille.

image

@berkdemir
Copy link
Author

That's 1000. I am talking aboudt showing the bumbers as f. ex. 4 * 10^6.

@idealkindom
Copy link
Contributor

Hi, you can use permille.

image

She/he wants a scientific number fortmatting.

@Proektsoftbg
Copy link
Owner

Proektsoftbg commented Mar 15, 2024

Hi!

Thank you for your feedback. Unfortunately, there is no chance to make it work currently.
Calcpad does not have number formatting. However, it can be developed in future of course.
Instead, it automatically displays small numbers with scientific format:
image
This works for most cases. The threshold is bellow 10-4. After that, we consider that there are too many leading zeros to make the output readable. Maybe your number is a bit larger. It is also possible to make this threshold customizable. What do you think?

BTW, I like the idea to use the unit conversion syntax for that. It looks very natural for Calcpad.

@berkdemir
Copy link
Author

Yes, I have two problems here:

  • For some cases, it is better to represent the number with 10^-6. For example, for shrinkage, everybody talks with the 10^-6, and it takes couple seconds for me to understand the shrinkage level if it writes with 10^-5, that's why I wanted to represent that with 10^-6.
  • Smaller numbers are an issue of course. Your suggestion also makes sense.
    image

But, if you liked the idea of "| number", maybe we can have following rules for "number units"?
a = 2000 | E3 = 2 x 10^3
a = 200000 | E6 = 0.2 x 10^6

I don't know if there is a need for representing other numbers. For example: a = 2000 | 500 = 4 x 500. I don't think so for now.

So, if we save the E to do this, I think it would be very simple, what do you think?

@idealkindom
Copy link
Contributor

Hi!

Thank you for your feedback. Unfortunately, there is no chance to make it work currently. Calcpad does not have number formatting. However, it can be developed in future of course. Instead, it automatically displays small numbers with scientific format: image This works for most cases. The threshold is bellow 10-4. After that, we consider that there are too many leading zeros to make the output readable. Maybe your number is a bit larger. It is also possible to make this threshold customizable. What do you think?

BTW, I like the idea to use the unit conversion syntax for that. It looks very natural for Calcpad.

He/She has some uinit like με for shrinkage, which is the same with rad, a non dimensional unit, which is of use for engineering analysis.

@berkdemir
Copy link
Author

Exactly @idealkindom, but to generalize the solution I think the following solution I proposed would be better:

But, if you liked the idea of "| number", maybe we can have following rules for "number units"?
a = 2000 | E3 = 2 x 10^3
a = 200000 | E6 = 0.2 x 10^6

@Proektsoftbg
Copy link
Owner

@berkdemir Thank you! This is a good idea. I will consider it for the future versions.

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

4 participants