Well, the first thing you need to do is get rid of the leading characters so that you have a string containing a number. After that, you can use
System.Double.Parse() or, if you're using .NET 2.0,
System.Double.TryParse(). The difference is that Parse() returns the double and throws an exception on failure, whereas TryParse() sets the double value in a reference parameter and returns true or false for success or failure. Here's an example:
Code:
string s = "pizza slice $2.50";
// Get rid of the "pizza slice" part
string price = s.Substring(s.IndexOf('$'));
double number;
bool result = System.Double.TryParse(price, out number);
if (result) {
System.Console.WriteLine("The price is " + number);
} else {
System.Console.WriteLine("Could not determine the price.");
}