Issue 25502 - Input "0 7/12" displayed as "4/7"
Summary: Input "0 7/12" displayed as "4/7"
Status: CLOSED WONT_FIX
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: OOo 1.1
Hardware: All Windows 98
: P3 Trivial (vote)
Target Milestone: ---
Assignee: spreadsheet
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-15 10:54 UTC by guido.pinkernell
Modified: 2004-02-16 11:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
bugdoc cont. wrongly displayed fractions (5.39 KB, application/vnd.sun.xml.calc)
2004-02-15 16:25 UTC, guido.pinkernell
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description guido.pinkernell 2004-02-15 10:54:44 UTC
Open a new spreadsheet.
Type into any cell "0 7/12". Press Enter.
Fraction is displayed as "4/7", expected: "7/12"

The input line shows "0,583333333333333" which correctly approximates "7/12".
So this bug won't result in wrong calculations. However this wrong display of a
fraction is extremely irritating and could result in people believing Calc can't
calculate, which is why I set priority to P1.

By the way: This behaviour seems to be related with "7" as a numerator in a
fraction.
Comment 1 guido.pinkernell 2004-02-15 12:03:15 UTC
Another one with 9 as numerator: type "0 9/12", turns into "1/9".
Comment 2 Regina Henschel 2004-02-15 16:02:45 UTC
The cause of that is the format code. By default it is "# ?/?". So when you have
only one digit for the denominator the nearest to 0.583333333333333 ist 4/7.
Perhaps changing the default to "# #?/#?" can solve the problem.
In case of "0 9/12" I get correctly "3/4" by OOo1.1 on Win98.
Comment 3 guido.pinkernell 2004-02-15 16:23:02 UTC
Thanks, Regina. The fractions are displayed correctly now with the format
settings you suggested.

I will attach a document which shows various wrongly displayed fractions, with
both the default and the user defined fraction formats. "0 9/12" is not among
them. I can't repeat that myself, maybe a mistake on my side.
Comment 4 guido.pinkernell 2004-02-15 16:25:27 UTC
Created attachment 13145 [details]
bugdoc cont. wrongly displayed fractions
Comment 5 frank 2004-02-16 11:16:15 UTC
Hi,

sorry to tell you that this is not a bug. The '?' stands for one decimal in this
case and therefore the result from 9/10 (0.9) is the same as the nearest one 8/9
which is 0.89. Using the nearest equivalent for displaying the result is the
goal, so we work as specified. Also the compatibility between Excel and Calc has
to be considered. And Excel works in the same way as Calc do.

So sorry to tell you but this is not a bug.

Frank

PS. The priority choosen is much to high. Prio 1 means the whole application is
useless or can't be started. This is clearly not the case. 
Comment 6 frank 2004-02-16 11:16:33 UTC
closed wontfix