# File lib/asciidoctor/table.rb, line 183
  def assign_width col_pcwidth, width_base = nil, pf = 10000.0
    if width_base
      col_pcwidth = ((@attributes['width'].to_f / width_base) * 100 * pf).to_i / pf
      # or...
      #col_pcwidth = (@attributes['width'].to_f * 100.0 / width_base).truncate 4
      col_pcwidth = col_pcwidth.to_i if col_pcwidth.to_i == col_pcwidth
    end
    @attributes['colpcwidth'] = col_pcwidth
    if parent.attributes.key? 'tableabswidth'
      # FIXME calculate more accurately (only used in DocBook output)
      @attributes['colabswidth'] = ((col_pcwidth / 100.0) * parent.attributes['tableabswidth']).round
    end
    col_pcwidth
  end