?
Solved

Converting Exponents to a Decimal, best practices.

Posted on 2012-03-19
3
Medium Priority
?
232 Views
Last Modified: 2012-03-20
Hi please review my debug screen shot and advise on best practice to convert the exponent illustrated to a decimal in the proper format.  My code works on numbers without exponents but as seen in the illustration exponents are a item the conversion should be equipped to handle.

Thanks for the suggestions.
Debug.png
0
Comment
Question by:kapes13
[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
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 37739577
Maybe I'm missing something, but the "exponent" you are seeing is just the way the debugger is displaying the data for the quick view. The X and Y values just below the quick view display as per your expectation.
0
 
LVL 30

Accepted Solution

by:
anarki_jimbel earned 2000 total points
ID: 37739665
OK, there are no any exponents here!
Letter 'E' you see just denotes a power of 10, in your case '-14'.
In other words, the first number in IPoint.Position is :
-2.30926389122033 multiplied by 10 power (-14) = 10^-14
Really, 10^-14 = 0.00000000000001

If you multiply you have:
-0.0000000000000230926389122033

Really, this number is rounded (just to fit some predefined space).
Below we may see this number not rounded (or rounded with higher precision):
-0.000000000000023092638912203256
0
 

Author Closing Comment

by:kapes13
ID: 37741864
Thank you for the clarification.  I have found a way to handle them based on what you provided.  Cheers.
0

Featured Post

Not sure which OpenStack Certification to get?

So you’ve realized you might want to get certified in OpenStack, but you’re not sure what the benefits might be or even which one you should take. You know there are several certification courses you can choose from, but how do you know which one is right for you?

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

770 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