[Libreoffice-bugs] [Bug 131943] New: Libreoffice Base not showing enough decimal precision for query

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 6 22:34:43 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=131943

            Bug ID: 131943
           Summary: Libreoffice Base not showing enough decimal precision
                    for query
           Product: LibreOffice
           Version: 6.0.7.3 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: fox2 at runbox.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200406/526d7701/attachment.htm>


More information about the Libreoffice-bugs mailing list