I don't think that works, wouldn't that make a string like "2 3/4" "23/4" ?
Try this (sorry it's in pseudocode, I don't have the source file with me):
case <number of parts == 2>
if ([[parts objectAtIndex:1] isEqualToString:@"")
return [parts objectAtIndex: 0];
else
<code as usual>
-Patrick
--
Patrick Wong
Northwestern University, 2009
McCormick School of Engineering and Applied Sciences
Computer Science
(224) 522-1638