Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
Can any one please suggest me how to format a number in to 0000000.00 format
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
naveenkenexa
New Member
Join Date:
Oct 2007
Posts:
3
#1
Can any one please suggest me how to format a number in to 0000000.00 format
Oct 16 '07, 12:04 PM
Can any one please suggest me how to format a number in to 0000000.00 format
kenobewan
Recognized Expert
Specialist
Join Date:
Dec 2006
Posts:
4871
#2
Oct 16 '07, 12:22 PM
Here is an article that may help:
<asp:GridView > Control
Comment
Post
Cancel
Plater
Recognized Expert
Expert
Join Date:
Apr 2007
Posts:
7872
#3
Oct 16 '07, 12:43 PM
Use the .ToString() function (and it's variants in particular) with the numberformat string.
Look it up in MSDN
Comment
Post
Cancel
GayathriP
New Member
Join Date:
Oct 2007
Posts:
17
#4
Oct 16 '07, 03:31 PM
You can use the following code to format a number in desired format
int a =12345;
MessageBox.Show (a.ToString("#0 000000.00#"));
The Output will be 0012345.00
Comment
Post
Cancel
Frinavale
Recognized Expert
Expert
Join Date:
Oct 2006
Posts:
9749
#5
Oct 16 '07, 06:33 PM
Is this a desktop application or an asp.net application question?
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment