Lsh and Inv Lsh

The KCalc Handbook
Prev | Chapter 3. Comments on Specific Functions | Next

# 3.3. Lsh and Inv Lsh

Lsh left shifts the integer part of the displayed value (multiplies it by 2) n times, where n is the next input number, and gives an integer result:

  `10 Lsh 3 =` gives 80 (10 multiplied by 2 three times).

  `10.345 Lsh 3 =` also gives 80.

Inv Lsh right shifts the value (performs an integer divide by 2) n times.

  `16 Inv Lsh 2 =` gives 4 (16 divided by 2 twice).

  `16.999 Inv Lsh 2 =` also gives 4.

Prev | Home | Next
% | Up | Cmp, And, Or and Inv Or