Hi All,
Ihave a number whcih is comming in the form of String.
Eg: 56.6644897846454 or 86.9999999
i require only first two numbers after decimal point with out rounding the number.
Thanks in Advance
string STR1 = "56.6644897846454";
string[] STR2 = regex.split(STR1, ".");
your STR[0] will be 56 only..
Isolved it , but here is one more turn around solution.
Eg: 123456789.987654321
String tvar, var;
tvar = (var.IndexOf('.') + 3).ToString();tvar = var.Substring(0, int.Parse(tvar)); TextBox4.Text = tvar;
Results: 123456789.98
Raghuram Raichooti