[Last Call] Learn how to a build a cloud-first strategyRegister Now


convertion problem

Posted on 2012-09-21
Medium Priority
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

mankowitz earned 1000 total points
ID: 38422837
can you do something like this


Open in new window

LVL 52

Assisted Solution

by:Gustav Brock
Gustav Brock earned 1000 total points
ID: 38426568
You can convert it to a string with Format or ToString using a format string of "0.00"


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
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…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

831 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