How to check the given string is float-point in c# ?
I need to implement the method : round(String name, int index)
The given string maybe the every type of float type, and the msdn given the regax is that :
[ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws]
and the index is the location after "." in name.
First, i should check the given name is a valid float-point, and then,
to check the number in name in index locaion is > 0 or not?
eg:
round(123.45612, 2) is that the "5" is > 0 .
I indeed need your help , appreciate very much.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

shimtannyRank #3,312 · 434 pointsPosted Jan 5, 2005, 9:50 PM EST
zjut14 pointsPosted Jan 6, 2005, 3:02 AM EST