| Summary: | Double factorial support | ||
|---|---|---|---|
| Product: | [Applications] kcalc | Reporter: | cirnos |
| Component: | general | Assignee: | Evan Teran <evan.teran> |
| Status: | ASSIGNED --- | ||
| Severity: | wishlist | CC: | cirnos, gabriel.barrantes.dev, opentrimx |
| Priority: | NOR | ||
| Version First Reported In: | 25.12.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
cirnos
2025-12-18 03:55:50 UTC
Hi! I am a student and new to KDE development. I would like to try implementing this double factorial (!!) feature. I plan to investigate the knumber logic and the parser to see how to handle the double exclamation mark. If I get stuck, I will let you know so someone else can take over. (In reply to ajay from comment #1) > Hi! I am a student and new to KDE development. I would like to try > implementing this double factorial (!!) feature. I plan to investigate the > knumber logic and the parser to see how to handle the double exclamation > mark. If I get stuck, I will let you know so someone else can take over. Seems that GNU GMP actually implements mpz_2fac_ui, seems that is the function you a looking for, follow/copy any other function implementation (factorial would be ideal) code to implement this new function. Start in the KNumber library. A possibly relevant merge request was started @ https://invent.kde.org/utilities/kcalc/-/merge_requests/207 |