Bug 409203

Summary: add fractional result option
Product: [Applications] kcalc Reporter: proteus5
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: gabriel.barrantes.dev
Priority: NOR    
Version First Reported In: 19.04   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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 ***