Removed switch in favor of using two or four minimum fraction digits.