Bug 409203 - add fractional result option
Summary: add fractional result option
Status: RESOLVED DUPLICATE of bug 144741
Alias: None
Product: kcalc
Classification: Applications
Component: general (other bugs)
Version First Reported In: 19.04
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-26 10:22 UTC by proteus5
Modified: 2024-04-05 23:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description proteus5 2019-06-26 10:22:04 UTC
SUMMARY
to add an option to convert the decimal result in fractional result so to get the fractional result of the division.

STEPS TO REPRODUCE
1. open the Kcalc
2. make a division
3. 

OBSERVED RESULT
fractional result option missed


EXPECTED RESULT

fractional result option present
SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDe Neon 5.16
(available in About System)
KDE Plasma Version: 5.16.1
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION
Comment 1 Christoph Feck 2019-06-27 00:26:29 UTC
Would require a major rewrite. Neither the display, nor the internal number class supports fractions. Additionally, what should be displayed, if you divide pi by 12, and you want a fractional result? There are ways to create approximate fractions (e.g. using "continued fractions"), but that would give a false impression that your result is actually representable by a fraction.
Comment 2 proteus5 2020-06-07 13:56:49 UTC
(In reply to Christoph Feck from comment #1)
> Would require a major rewrite. Neither the display, nor the internal number
> class supports fractions. Additionally, what should be displayed, if you
> divide pi by 12, and you want a fractional result? There are ways to create
> approximate fractions (e.g. using "continued fractions"), but that would
> give a false impression that your result is actually representable by a
> fraction.

the operation is useful for example to compare the different movies format aspect ratio which has normally issued as decimal number. So to get the real aspect ratio adopted.
Comment 3 Gabriel Barrantes 2024-04-05 23:30:34 UTC
This can be marked as duplicate of 144741, I would expect it to be implemented if we ever get natural display.

*** This bug has been marked as a duplicate of bug 144741 ***