Here we have an example to find out the number of digits that come after decimal points.
string number = "253.1258";
int length = number.Substring(number.IndexOf(".")+1).Length;
string number = "253.1258";
int length = number.Substring(number.IndexOf(".")+1).Length;