How could i convert data from string to long in C#?
I have data
String strValue[i] =\"1100.25\";
now i want it in
long
If you want to get the integer part of that number you must first convert it to a floating number then cast to long.
long l1 = (long)Convert.ToDouble("1100.25");
You can use Math class to round up the number as you like, or just truncate...
Math