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

Support for engineering notation display. #457

Closed
mofosyne opened this issue Sep 4, 2015 · 12 comments
Closed

Support for engineering notation display. #457

mofosyne opened this issue Sep 4, 2015 · 12 comments
Labels

Comments

@mofosyne
Copy link

mofosyne commented Sep 4, 2015

Is there some configuration to allow for engineering notation?

Ergo instead of displaying as 5e7, it would be in 50e6 ? Basically to the power of 3, which is convenient when dealing with SI units.

@josdejong
Copy link
Owner

This isn't yet supported but will would a nice new formatting option. We could call it {notation: 'engineer'}.

@devanp92
Copy link
Contributor

@mofosyne Displaying 5e7 is closer to scientific notation standard, whereas 50e6 is not. Technically it should be 5.0e7.

@mofosyne
Copy link
Author

Well, some calculators support "Engineering Notation" which does things in powers of 3s.

I'm not saying to replace scientific notation, but rather support "Engineering Notation" mode for those of us who rather not have to do mental conversion to get to micro, nano, pico meters etc... Which these physical calculators did think is valuable enough to include as a feature.

Which the same site you mentioned, also mentioned engineering notation: http://www.purplemath.com/modules/exponent4.htm

@devanp92
Copy link
Contributor

Ah, gotcha! This would be a great feature to add.

@johnmarinelli
Copy link

Hey there, I'd like to take a stab at this - started it here:
https://github.com/johnmarinelli/mathjs/tree/issue457

should have something to show within a few days!

@josdejong
Copy link
Owner

Thanks John!

@josdejong
Copy link
Owner

@johnmarinelli what do you think, should we call the notation option {notation: 'engineer'} or {notation: 'engineering'}? I think I may like the shorter one better.

@mofosyne
Copy link
Author

In general speech, I would say: "engineering notation" vs "scientific
notation"

So try "Engineering" for the notation key field.

On Sun, Dec 20, 2015 at 8:48 PM, Jos de Jong notifications@github.com
wrote:

@johnmarinelli https://github.com/johnmarinelli what do you think,
should we call the notation option {notation: 'engineer'} or {notation:
'engineering'}? I think I may like the shorter one better.


Reply to this email directly or view it on GitHub
#457 (comment).

@johnmarinelli johnmarinelli mentioned this issue Dec 21, 2015
@johnmarinelli
Copy link

@josdejong I opted to use {notation: 'engineering'}; I figure that it's the idiomatic way to say it. PR here: #519

@josdejong
Copy link
Owner

@johnmarinelli yes makes sense, lets go for engineering.

@mofosyne
Copy link
Author

Oh @johnmarinelli is your commit ready to be pulled? I noticed its 243 commits behind josdejong:master which might cause possible conflict when merging

@mofosyne
Copy link
Author

Looks like it's all merged in now. Closing.

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

4 participants