Author Topic: Calculator shift left/right  (Read 3199 times)

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Calculator shift left/right
« on: September 07, 2017, 09:34:18 PM »
Is there any way to have shift left << and shift right >> buttons...?

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Re: Calculator shift left/right
« Reply #1 on: September 08, 2017, 08:40:12 PM »
And maybe a to_the_power_of ** button.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Calculator shift left/right
« Reply #2 on: September 09, 2017, 12:39:50 AM »
Added << and >> buttons for next build (under E and F). Don't have a great place for ** other than near the =.  If the = button was smaller, then there would be room for 3 more buttons (assuming the = was the same size as the other 3).

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Re: Calculator shift left/right
« Reply #3 on: September 11, 2017, 04:12:45 PM »
The = button would be ok if its size is 2x instead of 4x.

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Re: Calculator shift left/right
« Reply #4 on: September 11, 2017, 04:23:17 PM »
Also, the bitwise logic operator buttons (And&, Or|, Xor^, OnesC~) can have their captions abbreviated (&, |, ^, ~)...

( or have an option to show full or abbreviated captions )

( most of us know the C bitwise logic operators; anyone who doesn't know will learn quickly )

this allows these buttons to be smaller.

:)
« Last Edit: September 11, 2017, 04:25:05 PM by joecar »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Calculator shift left/right
« Reply #5 on: September 12, 2017, 02:14:11 PM »
Smaller bit wise operators allows for a better arrangement. Done for next build

joecar

  • Senior Community Member
  • Posts: 420
  • Hero Points: 9
  • engineer/gearhead
Re: Calculator shift left/right
« Reply #6 on: September 13, 2017, 06:29:59 PM »
in the calculator how do I specify the wordwidth (i.e. 8, 16, 32, 64 bit)...?

or does it not matter...!?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Calculator shift left/right
« Reply #7 on: September 13, 2017, 07:22:44 PM »
No way to force a width. It tries to be smart about it. Let us know if you see an issue. Negative numbers are the most difficult to be smart about in hex.