<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - LibreOffice Writer Table Measurement Width problem Error of 1mm cannot remove completely"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=143554">bug 143554</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>rb.henschel@t-online.de
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>DUPLICATE
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - LibreOffice Writer Table Measurement Width problem Error of 1mm cannot remove completely"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=143554#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - LibreOffice Writer Table Measurement Width problem Error of 1mm cannot remove completely"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=143554">bug 143554</a>
              from <span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span></b>
        <pre>There is currently no way to avoid it. LibreOffice uses internally integral
unit twip in Writer and Calc and use integral 1/100 mm in Draw/Impress, file
save and API (macros).
1 twip = 127/72 * 1/100 mm and 1/100 mm = 72/127 twip.

So 5mm = 500 * 1/100 mm = 500 * 72/127 twip = 283.4645 twip, rounds down to 283
twip.
283 twip = 283 * 127/72 * 1/100mm = 499.1805 * 1/100mm, rounds down to 499 *
1/100mm = 4.99mm

4.99mm = 499 * 1/100 mm = 499 * 72/127 twip = 282.8976 twip, rounds up to 283
twip.

So with internal integral unit twip it is not possible to distinguish 4.99 mm
from 5.00 mm.

There had been discussions to change from integral 1/100 mm to a floating point
1/100 mm for to get better precision in internal unit conversions. That would
be such a huge change with danger of lot of regressions, that it cannot be done
on the side, but needs a paid developer over some time. So it is unlikely, that
an improvement will happen in the near term.

The problem is not restricted to column or table width.

*** This bug has been marked as a duplicate of <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Rounding issues when working with metric units"
   href="show_bug.cgi?id=75915">bug 75915</a> ***</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>