Solved

Converting Exponents to a Decimal, best practices.

Posted on 2012-03-19
3
226 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
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 29

Accepted Solution

by:
anarki_jimbel earned 500 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

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

Suggested Solutions

Title # Comments Views Activity
WPF - Tooltips for ComboBox items 5 33
Syntax Error 2 44
SSL https .net web site force redirect 3 34
Visual Studio TFS - how do I check in my code? 2 28
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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