[Libreoffice-bugs] [Bug 135103] Decimal precision fail in addition

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jul 26 14:59:52 UTC 2020


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

--- Comment #6 from Michael Warner <michael.warner.ut+libreoffice at gmail.com> ---
(In reply to Mike Kaganski from comment #3)
> (In reply to Michael Warner from comment #2)
> > That said, one could argue that it would be more user friendly if
> > the formatting of a cell containing an equation (and the sum in the corner)
> > defaulted to the number of decimal places shown to the minimum (or maximum)
> > number of decimal places entered in any referenced cell containing a number.
> > In the example provided, it just doesn't make sense to display a result to
> > 14 places when at most 2 are provided.
> 
> That is over-simplification. So for this formula:
> 
> > = <cell with 1> + <cell with 10> ^ <cell with -5>
> 
> all cells are shown with default formatting; all are whole numbers. Are you
> telling we need to show "1" instead of "1.00001"?

I'm not telling you you "need" to do anything. I can't tell you what to do. 

> 
> It's very difficult to come with a reasonable default precision (and
> analyzing the formula, taking into account display format, with its optional
> digits "#", display of multiples of 1000, scientific notation, percents,
> etc, may be very expensive and error-prone); IIRC Eike ~recently changed the
> default to "show as many as fit in column", but I may be wrong.

Difficult to get it right in all cases, but we might be able to get 80% of them
right for 20% of the effort. I don't know, it was just a thought. Ignore it if
you don't like it, I think I'm done with this thread.

-- 
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/20200726/fac863da/attachment.htm>


More information about the Libreoffice-bugs mailing list