Jan 10, 2014

C# How to Convert a String to a Number

decimal       -   ToDecimal(stringvariable)
float            -   ToSingle(stringvariable)
double         -   ToDouble(stringvariable)
int               -    ToInt(stringvariable)


string stringvalriable="1001";

int  intvariable = Convert.ToInt(stringvariable);

No comments:

JWT Token Decode Using Jquery

When it come to authentication we use many mechanism. Ones the user authenticated we must keep these details somewhere safe. So we can share...