Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index

I've a rounding or maybe display format problem with base.

I'm making computations with NUMERIC(30, 2)

I've a query (let's name it query1) that do some computation on numeric
columns something like:

    SUM(c1 * c2 / c3) as s1
    , SUM(c4 * c5 / c6) as s2
  FROM table1
  GROUP BY c0;

This query actually returns several rows that have the precision I need.

Then I've  query as:

SELECT SUM(s1 * s1) as ss1 from query1;

SELECT SUM(s2) as ss2 from query1;

And they return result in scientific notation with just 2 decimal
visible 6,23E+015

When I try to do further computations with ss1 and ss2 I get 0 with NO
decimal digits.

When I import query1 in localc and do the sum and squaring and
further computation there I can get the precision I need.


Ivan Sergio Borgonovo

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.