?
Solved

engineering notation

Posted on 2004-08-27
5
Medium Priority
?
1,297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 400 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

771 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