C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Convert integer, long, double datatypes to a string


Posted Date: 26 Jan 2004    Resource Type: Articles    Category: .NET Framework

Posted By: Tony John       Member Level: Gold
Rating:     Points: 10



There are several ways you can convert a number to string in .Net. Few examples are shown below.

string salary;

// Sample 1
salary = 10000.ToString();

// Sample 2
int sal = 10000;
salary = sal.ToString();

// Sample 3
salary = System.Convert.ToString(sal);

// Sample 4
salary = System.Convert.ToString(10000);

The above method can be used to convert various datatypes.




Responses

Author: Dr. David Stevens    20 Aug 2004Member Level: Bronze   Points : 0
The 2nd and 3rd samples both worked fine for me.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Convert integer, long, double datatypes to a string
Previous Resource: Converting string to number
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

SPOC

Contact Us    Privacy Policy    Terms Of Use