String to Numeric Conversion

Data Conversion in c# .net

Numeric Type Method
decimal Convert.ToDecimal(String)
float Convert.ToSingle(String)
double Convert.ToDouble(String)
short Convert.ToInt16(String)
long Convert.ToInt64(String)
ushort Convert.ToUInt16(String)
uint Convert.ToUInt32(String)
ulong Convert.ToUInt64(String)

 

How to: Convert a string to an int (C# Programming Guide)

 

, , , ,

  1. No comments yet.
(will not be published)
Submit Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe to comments feed
  1. No trackbacks yet.

SetPageWidth