<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Basic math calculation errors"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142134">142134</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Basic math calculation errors
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.1.2.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>emily@electric.aero
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
I have a cell that contains "=10.2-9.3" and the value that is returned is
0.899999999999999 instead of 0.9 exactly.

I have another cell that contains "=(16+16+10.2)-(16+16+9.3)", and it returns
0.900000000000006 instead of 0.9 exactly.



Steps to Reproduce:
1. Create a cell that contains "=10.2-9.3".
2. Create a cell that contains "=(16+16+10.2)-(16+16+9.3)".
3.

Actual Results:
Happens in new empty worksheets

Expected Results:
I should be getting exactly 0.9 or 0.900000000


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.2.2 (x64) / LibreOffice Community
Build ID: 8a45595d069ef5570103caea1b71cc9d82b2aae4
CPU threads: 6; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL</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>