Solved

Converting Exponents to a Decimal, best practices.

Posted on 2012-03-19
3
225 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 74

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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