def size_col(col) #:nodoc:
      # Look up the cell value to see if it has been changed.
      if @col_sizes[col]
        width = @col_sizes[col]

        # Convert to pixels.
        if width == 0
          pixels = 0
        elsif width < 1
          pixels = (width * (MAX_DIGIT_WIDTH + PADDING) + 0.5).to_i
        else
          pixels = (width * MAX_DIGIT_WIDTH + 0.5).to_i + PADDING
        end
      else
        pixels = @default_col_pixels
      end
      pixels
    end
def size_col(col) #:nodoc:
      # Look up the cell value to see if it has been changed.
      if @col_sizes[col]
        width = @col_sizes[col]

        # Convert to pixels.
        if width == 0
          pixels = 0
        elsif width < 1
          pixels = (width * (MAX_DIGIT_WIDTH + PADDING) + 0.5).to_i
        else
          pixels = (width * MAX_DIGIT_WIDTH + 0.5).to_i + PADDING
        end
      else
        pixels = @default_col_pixels
      end
      pixels
    end
Convert the width of a cell from user's units to pixels. Excel rounds the
 column width to the nearest pixel. If the width hasn't been set by the user
 we use the default value. If the column is hidden it has a value of zero.