tomhosking
Well-known member
- Joined
- Aug 4, 2005
- Messages
- 49
- Programming Experience
- 1-3
When I convert a double to a string, it sometimes gives me weird answers. This seems to be happening because it is very small, and when it converts it to a string, it includes the E-05 bit. How can I set it to output just the numbers?
Example:
CStr(1921.256197-1921.256157)
gives:
-3.99999998990097E-05
but I want:
-0.00003999
Example:
CStr(1921.256197-1921.256157)
gives:
-3.99999998990097E-05
but I want:
-0.00003999