Solved

engineering notation

Posted on 2004-08-27
5
1,246 Views
Last Modified: 2012-08-13
Hello,

How do I display a number in engineering notation?  That is, scientific notation where the powers are constrained to multiples of three?

e.g. 23.456E15 instead of 2.3456E16

thanks,

firebird-sc
0
Comment
Question by:firebird-sc
5 Comments
 
LVL 18

Expert Comment

by:SjoerdVerweij
ID: 11918270
Which DBMS/language?
0
 
LVL 2

Author Comment

by:firebird-sc
ID: 11918277
Oops, sorry. Meant to file this under MS Access. VB is the language.
0
 
LVL 5

Accepted Solution

by:
rsriprac earned 100 total points
ID: 11918945
Use the following to format the number:

Format(myNumber, "##0.0E+0")


Where myNumber is the varible with the digit to format.
-Ram
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 11930087
as far as I am aware, there is no automatic method in VB to force the display in 'Engineering' notation (in fact, asa Physics major, and thus very familiar with 'Scientific Notation', I personally have never heard of the 'engineering notation' that you describe).  Format(myNumber, "##0.0E+0")  will only show 'scientific notation', and will NOT force the exponent to be a factor of 3.  If this is an ABSOLUTE necessity, then you will need to write your own routine to get that type of exponential notation.

AW
0
 
LVL 2

Author Comment

by:firebird-sc
ID: 11931921
Engineering notation is more practical than scientific notation. It's meant to fit with the system of prefixes of SI units.  Consider 2.34E-2 Volts in scientific notation which becomes 23.4E-3 Volts in engineering notation, or 23.4 mV.  The practicality becomes apparent when you consider that most measuring devices have ranges based on these prefixes. A multimeter will give measurements in V, mV, uV, but not Vx10^-2.

rsriprac's suggestion will work well for me; I am measuring carrier concentration in semiconductor materials and we write all measurements in the E15 range.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now