Click here to Skip to main content
12,547,806 members (47,387 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
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 23-Feb-13 5:28am
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Use the appropriate format control types to print the value in fixed rather than scientific notation as described in MSDN[^].
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


Try this:
' output: 0.00007965
Hope this helps.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 23 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100