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

joecar

  • Senior Community Member
  • Posts: 251
  • 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: 251
  • 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: 4965
  • Hero Points: 410
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: 251
  • 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: 251
  • 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: 4965
  • Hero Points: 410
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: 251
  • 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: 4965
  • Hero Points: 410
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.