473,386 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can any one please suggest me how to format a number in to 0000000.00 format

Can any one please suggest me how to format a number in to 0000000.00 format
Oct 16 '07 #1
4 1076
kenobewan
4,871 Expert 4TB
Here is an article that may help:
<asp:GridView> Control
Oct 16 '07 #2
Plater
7,872 Expert 4TB
Use the .ToString() function (and it's variants in particular) with the numberformat string.
Look it up in MSDN
Oct 16 '07 #3
You can use the following code to format a number in desired format

int a =12345;
MessageBox.Show(a.ToString("#0000000.00#"));

The Output will be 0012345.00
Oct 16 '07 #4
Frinavale
9,735 Expert Mod 8TB
Is this a desktop application or an asp.net application question?
Oct 16 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Brendan Reynolds | last post by:
I have a web service that takes the XML representation of a dataset and uses XSLT to transform it to the format required to open a disconnected ADODB recordset on the XML, and returns the...
3
by: Mike R | last post by:
Hi I have a web service that requires an xml tag to be formatted like this : <StartDate>2004-01-13T00:00:00.0000000-00:00</StartDate> Using vb.net how do I get this format. I've tried the...
2
by: JC Voon | last post by:
hi: Is there a function to format the datetime value to the following format 2005-09-29T17:57:03.0000000+08:00 ? currently i'm using a hard way Dim result As String
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
3
by: RJA | last post by:
Hiyas, Using VS .net 2003. Setting up a Webservice that accepts 3rd party vendor designed XML requests and returns a filled XMLDocument with response data. Vendor XSDs were serialize into...
1
by: Ronald S. Cook | last post by:
Hi, I have the following code that reads an XML document. I want it to delete nodes where the date is less than today. It *almost* works (please see the output below the code). How can I make...
2
by: only2gayathri | last post by:
Hi all, I have a page(vb.net) which directs to a excel sheet.This excel sheet retains all the values(mainly numbers) from the page and displays it.The problem is that sometimes the number's...
21
by: Galen Somerville | last post by:
My application receives and displays Heart sounds and ECG's in real time. This data comes from a proprietary USB 2.0 device. Unlike most USB devices, this data comes in short bursts of about 24...
5
by: phhonl | last post by:
Dim x As String x = Format$("50", "00000000") in vb6 x returns "00000050" in vb.net 2005 x returns "0000000" How do I get the vb6 result in vb.net 2005?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.