Bug 79154 - convert from/to unsigned number
Summary: convert from/to unsigned number
Status: RESOLVED WORKSFORME
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-06 01:59 UTC by Mathieu Jobin
Modified: 2020-12-29 09:59 UTC (History)
0 users

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 Mathieu Jobin 2004-04-06 01:59:29 UTC
Version:           1.3.999 (using KDE 3.2 BRANCH >= 20040204, compiled sources)
Compiler:          gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
OS:          Linux (i686) release 2.4.21-0.13mdk

For example i copy/paste a number from the debugger in a C program. the C program shown a signed version of the number. I can't find a way in kcalc to convert from/to unsigned number.

is it already there ? that would be handy sometimes.
Comment 1 Mathieu Jobin 2013-01-23 01:57:14 UTC
please close if you think this idea is useless
Comment 2 Evan Teran 2013-01-23 04:46:02 UTC
Mathieu,

I actually find the idea quite useful! When you originally posted the bug, I had taken the back back seat with regard to maintaining kcalc. When I took back over maintainer status, I left this bug intentionally open as a reminder for me to investigate how to best implement this feature.

The most recent work has been with regards to improving the core number library for better support for high precision math.

Once KDE 4.10 is officially out the door, I believe that the kcalc code will be considered stable enough to look into new features. So please, I know it's been forever (I am embarrassed that this is nearly 9 years later and for that I apologize!).

I will upgrade the feature request to "confirmed" so at least I am acknowledging that this is a *good idea*.

This would really only apply to Dec mode, since HEX/OCT/BIN are implicitly treated as unsigned by convention. So, perhaps there could be a button which would toggle between a 2's compliment signed view (the default) and an unsigned view.
Comment 3 Mathieu Jobin 2020-12-07 09:10:03 UTC
no interests was never shown in this idea.

I now use interactive ruby for calculation.
not kcalc. so good luck if this is useful to anyone
Comment 4 Christoph Feck 2020-12-29 09:59:47 UTC
Thank you Mathieu for cleaning up old tickets!

This feature would have required that KCalc used a fixed bit width. Otherwise, the "unsigned" value for -1 is undefined.