convertion problem

Posted on 2012-09-21
Last Modified: 2012-10-06
In my table there is a field call Bill_account, as smallmoney. When I use datareader
like  mydatareader.item("Bill_account") and put it in a textbox. The result is "0.0000". It is stored as  0.00 in SQL. How can I convert it to 0.00? That is how I want it to be displayed.
Question by:VBdotnet2005
    LVL 24

    Accepted Solution

    can you do something like this


    Open in new window

    LVL 48

    Assisted Solution

    by:Gustav Brock
    You can convert it to a string with Format or ToString using a format string of "0.00"


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now