Mark Chimes <(E-Mail Removed)> wrote:
> Hmmm. The data I need to parse will never hold any of the sort of values you
> list, but I see what you mean.
>
> Here's my problem.
> I have large amounts of data coming to my form in an unknown state. ie: I
> have no idea whether it is numerical, alpha-numerical or all alpha. For
> example, I may receive "5.00%" (discard), "Total:" (discard), 2748.512
> (use).
>
> I am interested ONLY in pure numerical data, including decimal values.
> I need to use only approx 5% of the data that comes to the form.
>
> Any suggestions?
Yes - use Decimal.TryParse, or Morten suggested.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too