[RESOLVED] Convert Double To String WITHOUT Scientific Notation?

  • Register
  • Help
  • Remember Me?
VBForums - Visual Basic and VB .NET Discussions and More!
  • Advanced Search
  • Home
  • VBForums
  • Visual Basic
  • Visual Basic .NET
  • [RESOLVED] Convert double to string WITHOUT scientific notation?
Results 1 to 3 of 3 Thread: [RESOLVED] Convert double to string WITHOUT scientific notation? share-icon
  • Thread Tools
    • Show Printable Version
  • Display
    • Linear Mode
    • Switch to Hybrid Mode
    • Switch to Threaded Mode
  1. Aug 29th, 2006, 03:51 PM #1 jasonumd
    • View Profile
    • View Forum Posts
    jasonumd is offline

    Thread Starter New Member Join Date Jul 2006 Posts 13

    Resolved [RESOLVED] Convert double to string WITHOUT scientific notation?

    I am trying to convert a double to a string without VB automatically converting the double to scientific notation. For example, when "0.0000101" is converted to a string, the string is equal to "1.01E-06". I have spent most of the afternoon trying to find out how to do this conversion and I can't. Help!! Thanks in advance, Jason
    Reply With Quote Reply With Quote
  2. Aug 29th, 2006, 04:26 PM #2 mpdeglau
    • View Profile
    • View Forum Posts
    mpdeglau is offline Frenzied Member Join Date Jul 2005 Posts 1,521

    Re: Convert double to string WITHOUT scientific notation?

    This is a round-about way. But it looks like it works. Convert the number to a decimal (or better yet, if you can just use a decimal instead of double), and call ToString on that. VB Code:
    1. Dim num As Double = 0.0000101
    2. Messagebox.Show(Cdec(num).ToString)
    Visual Studio Team Edition 2005 GDI+ Links: Bob Powell VB.Net Heaven API Links: All API Pinvoke.Net VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)
    Reply With Quote Reply With Quote
  3. Aug 30th, 2006, 07:40 AM #3 jasonumd
    • View Profile
    • View Forum Posts
    jasonumd is offline

    Thread Starter New Member Join Date Jul 2006 Posts 13

    Re: Convert double to string WITHOUT scientific notation?

    That worked great. Thanks!!!
    Reply With Quote Reply With Quote
Quick Navigation Visual Basic .NET Top
  • Site Areas
  • Settings
  • Private Messages
  • Subscriptions
  • Who's Online
  • Search Forums
  • Forums Home
  • Forums
  • Visual Basic
    1. Visual Basic .NET
      1. CodeBank - VB.net
    2. Visual Basic 6 and Earlier
      1. CodeBank - Visual Basic 6 and earlier
    3. TwinBASIC
      1. CodeBank - TwinBASIC
    4. Universal Windows Platform and Modern Windows Experience
    5. Xamarin
    6. Mobile Development
    7. ASP, VB Script
    8. Office Development
    9. Database Development
    10. Reporting
    11. API
    12. Games and Graphics Programming
      1. Game Demos
    13. COM and ActiveX
    14. Network Programming
    15. Visual Basic FAQs
    16. Slow Chat with the Microsoft Visual Basic team
  • .NET and More
    1. ASP.NET And ASP.NET Core
    2. Visual Basic .NET
    3. MVC .Net
    4. C#
    5. Microsoft Azure and Cloud Dev
    6. WPF, WCF, WF
    7. .NET Architecture and Design
    8. Silverlight
  • General
    1. General Developer Forum
    2. IoT, IoE, and Maker Forum
    3. Testers and Testing
    4. Application Testing
    5. Application Deployment
    6. Linux Development
    7. General PC
    8. VBForums Coding Contests
      1. Contest Entries
    9. Code It Better
    10. Maths Forum
  • Other Languages
    1. Other BASIC
    2. C and C++
    3. Java
    4. PHP
    5. XML, HTML, Javascript, Web and CSS
    6. jQuery
    7. Assembly
    8. Other Programming Languages
  • VBForums CodeBank
    1. CodeBank - Visual Basic .NET
    2. CodeBank - Visual Basic 6 and earlier
    3. CodeBank - ASP / ASP.NET / Blazor / MVC / Web API
    4. CodeBank - C#
    5. CodeBank - C++
    6. CodeBank - Java / J#
    7. CodeBank - PHP
    8. Codebank - Game Programming
    9. Codebank - Mobile Development
    10. CodeBank - JavaScript
    11. Codebank - Cascading Style Sheets (CSS)
    12. CodeBank - Other
  • VBForums UtilityBank
    1. UtilityBank - Utilities
    2. UtilityBank - IDE Add-Ins
    3. UtilityBank - Components
    4. UtilityBank - Tutorials
    5. UtilityBank - Other
  • Projects
    1. Project Requests
    2. Project Communication Area
  • Jobs
    1. Just VB Jobs
    2. Open Positions (Jobs)
    3. Looking for Work
  • Community
    1. Forum Feedback
    2. General Discussion / Chit Chat
      1. World Events
    3. Forum Test Area
« Previous Thread | Next Thread »
  • Home
  • VBForums
  • Visual Basic
  • Visual Basic .NET
  • [RESOLVED] Convert double to string WITHOUT scientific notation?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off

Forum Rules

Click Here to Expand Forum to Full Width
Terms of Service | About Us | Privacy Notice | Contact Us | Advertise | Sitemap| California - Do Not Sell My Info

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.

All times are GMT -5. The time now is 09:07 PM.

Từ khóa » Visual Basic Double To String