<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 - Libreoffice Base not showing enough decimal precision for query"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=131943">131943</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Libreoffice Base not showing enough decimal precision for query
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Linux (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>Base
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>fox2@runbox.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
I have two fields "county_population" and "state_population" each formatted as
double[DOUBLE]. The third field is a calculated field "county_population" /
"state_population". When I run query, the results show only two decimal places;
I would like it to show six decimal places. I've tried using CAST as DECIMAL
and I've tried multiplying "county_population" *1.000000 to no avail.

Steps to Reproduce:
1. create two fields "state_population" "county_population" both formatted as
double[DOUBLE]
2. create a calculated field density "county_population"/"state_population"
3. run query

Actual Results:
state_population        county_population       density
4908621 55869   0.01
4908621 223234  0.05
4908621 44428   0.01
7378494 38837   0.01
2910357 8525    0


Expected Results:
state_population        county_population       density
4908621 55869   0.011382
4908621 223234  0.045478
4908621 44428   0.009051
7378494 38837   0.005264
2910357 8525    0.002929



Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
none</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>