Looks like you've got an offer of code already but I'll give a hint to
anyone that wants to figure this out themselves.
using System.Text.RegularExpressions;
split the number into an integer and a fraction by using the space
between them, split the numerator and denominator by using the "/"
between them, divide the numerator by the denominator, then add the integer.
in Perl this could be done like so; (the regular expression will be
similar in C#, that is why I am showing you this)
my $fraction = "2 1/2";
my ($int, $num, $den) = $fraction =~ m|(\d+) (\d+)/(\d+)|;
print $int + ($num/$den);
this prints "2.5". In Perl variable types are pretty insignificant, its
smart enough to know when you need a double, and it auto converts. Perl
makes you LAZY, don't use it unless you need development speed.
Enough about Perl.
the bit between the "m|" and the "|" will be important to you.
jeremiah();