Solved

Converting Exponents to a Decimal, best practices.

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

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 …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 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