You should instead use an enum
for your type (that is, if it fits your model of reading the file and whatnot). Here's the solution I derived:
public static void ConvertToPounds(double weight, WeightType type)
{
switch (type)
{
case WeightType.Kilograms:
{
double pounds = weight * 2.20462d;
double ounces = pounds - Math.Floor(pounds);
pounds -= ounces;
ounces *= 16;
Console.WriteLine("{0} lbs and {1} oz.", pounds, ounces);
break;
}
default:
throw new Exception("Weight type not supported");
}
}