>>
>>OK. 'Twas drive-past coding. So's this:
string s = "123.00";
>>string cut = s.IndexOf(".") > 0 ? s.Substring(0, s.IndexOf(".")) : s;
>>
I'll do unit testing later :-}
>
>
>I created an extension method called RemoveChar that takes the char to remove, ergo... string.RemoveChar('.')
Will this make this string to be '12300' ?
If it's not broken, fix it until it is.
My Blog