Engineering Number Format
|
09-02-2014, 12:31 PM
Post: #1
|
|||
|
|||
Engineering Number Format
I just noticed that when switching to eng-format the post comma digits are filled with '0'. say 1200 is displayed as 1.200000E3, where I would consider 1.2E3 much much more readable.
Is there a way to disable the current behaviour in the current firmware or should I add that topic to the poll-list? My intuition tells me, very few peoples are likely to share my opinion... |
|||
09-02-2014, 04:13 PM
Post: #2
|
|||
|
|||
RE: Engineering Number Format
(09-02-2014 12:31 PM)Angus Wrote: I just noticed that when switching to eng-format the post comma digits are filled with '0'. say 1200 is displayed as 1.200000E3, where I would consider 1.2E3 much much more readable. It's the same in SCI mode. No, there's no way to tell Prime to display 1200 as 1.2E3 in SCI 6 or ENG 6 modes. The only modes that force automatic hiding of trailing zeros are Standard and Floating, and Rounded when it doesn't flip into SCI mode. Thoughts (which you already know but which bear repeating for οἱ πολλοί]): Unlike the other display modes, SCI and ENG modes are intended to show a given number of significant digits, and trailing zeros are significant digits (IF obtained from calculations based on that many significant digits, of course). Also, if trailing zeros were suppressed, the user would not know how many significant digits the result has: "Does this result have significant trailing zeros, or did I set this many digits in the display setting?" In other words, those zeros CAN mean something, so hiding them would be a Bad Thing. <0|ɸ|0> -Joe- |
|||
09-03-2014, 01:15 AM
Post: #3
|
|||
|
|||
RE: Engineering Number Format
(09-02-2014 04:13 PM)Joe Horn Wrote: Thoughts (which you already know but which bear repeating for οἱ πολλοί]): Unlike the other display modes, SCI and ENG modes are intended to show a given number of significant digits, and trailing zeros are significant digits (IF obtained from calculations based on that many significant digits, of course)... I'll play devil's advocate here, I think the original poster has a valid point. I always thought of scientific notation as a way to work with large numbers with a mantissa and an exponent in order to avoid showing a lot of digits, never heard of it being restricted to show a fixed amount of digits (when I work numbers by hand, I never write those zeros, does anyone??). Then engineering notation is the same, except the exponent is limited to multiples of 3 to make it more compatible with the use of units. But the basic idea in my opinion is to avoid showing all the trailing zeros in large numbers. I understand that you might prefer displaying a fixed amount of digits (not to be confused with significant digits, these are display digits only), but I think removing trailing zeros is a perfectly valid point too, and was actually the intent of the original idea. Also let's not confuse display digits with significant digits. The former are just for show, while the latter is fixed either by hardware or by specification of the math library you are using. If you have a number that results from the multiplication of two 8-digit numbers, it will have up to 16 significant digits, even if you choose to display only 6 (assuming the system precision is >=16, of course), so the relevance of those zeros being displayed is questionable. In the original example, (1.200000E3), assuming 16-digits for system precision, you have 14 zeros. Why is showing 5 any better than showing none? Neither case represents the number of significant digits that you have in storage. As far as the significance of the digits due to engineering uncertainties in the input variables, methods, etc., I don't think displaying a fixed number of digits will help anything. Only the engineer will know how close his result will be in the end. I think we should let the machine display the numbers in a way that is easy to read for the user, and let the user judge the accuracy of the result. So count me in as one of the few, I'd rather see 1.2e3 than 1.200000e3, nothing wrong with that. Claudio |
|||
09-03-2014, 05:16 PM
Post: #4
|
|||
|
|||
RE: Engineering Number Format
The display formats with a fixed number of decimals have an advantage which has not yet been mentioned in this thread: They align much better in a tabular display. I guess this was the intention when they where invented (must have been for COBOL, FORTRAN, RPG and the like).
Marcus von Cube Wehrheim, Germany http://www.mvcsys.de http://wp34s.sf.net http://mvcsys.de/doc/basic-compare.html |
|||
09-03-2014, 06:47 PM
Post: #5
|
|||
|
|||
RE: Engineering Number Format
I know it is not the final say on everything but Wikipedia seems to go with the idea that the number of trailing digits shown represents the number of significant digits in the number.
http://en.wikipedia.org/wiki/Significant...c_notation |
|||
09-04-2014, 09:58 PM
Post: #6
|
|||
|
|||
RE: Engineering Number Format
(09-03-2014 06:47 PM)ndzied1 Wrote: I know it is not the final say on everything but Wikipedia seems to go with the idea that the number of trailing digits shown represents the number of significant digits in the number. Which, as is common in Wikipedia, contradicts its own definition of Scientific Notation: http://en.wikipedia.org/wiki/Scientific_notation In which the trailing zeros are given as optional. Claudio |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)