1.

How To Get The Number After Decimal Point In .net?if The No Is 2.36. Result Should Be 36?

Answer»

string result=number.SUBSTRING(number.inderOf('.')+1);

It will first get the INDEX of '.' and then add 1 to get the index of next CHARATER then with the HELP of substring method we will get the no after the decimal point to the last

string result=number.Substring(number.inderOf('.')+1);

It will first get the index of '.' and then add 1 to get the index of next charater then with the help of substring method we will get the no after the decimal point to the last



Discussion

No Comment Found