Click here to Skip to main content
16,016,693 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when trying to convert: 0.00007965, to string using cstr, str or tostring,
they return 7.965E-05.

I want: 0.00007965, there's any way to do it?, or I have to write a function
to do it.
Posted
Comments
Sergey Alexandrovich Kryukov 3-Mar-13 18:46pm    
Please don't post non-answers as "solution". It can give you abuse reports which eventually may lead to cancellation of your CodeProject membership.
Comment on any posts, reply to available comments, or use "Improve question" (above).
Also, keep in mind that members only get notifications on the post sent in reply to there posts.
—SA

Use the appropriate format control types to print the value in fixed rather than scientific notation as described in MSDN[^].
 
Share this answer
 
Hi,

Try this:
VB
Console.WriteLine(CDec(0.00007965).ToString)
' output: 0.00007965

Hope this helps.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900