Page 1 of 1
Aretmetic combinator
Posted: Fri Apr 28, 2017 5:20 am
by Shaymes
Hi there
maybe soneone can me explain what << and >> is for?
Re: Aretmetic combinator
Posted: Fri Apr 28, 2017 5:50 am
by Choumiko
Re: Aretmetic combinator
Posted: Fri Apr 28, 2017 6:12 am
by DaveMcW
Correction, it is
arithmetic shift.
I would love to have >>> for true logical shift.
Re: Aretmetic combinator
Posted: Fri Apr 28, 2017 6:53 am
by jorgenRe
If you want to trye it out go to wolfram alpha at
https://www.wolframalpha.com/input/?i=5+%3C%3C+1
and just write something like: 5 << 1 which becomes 10
Think of << as a multiplier and >> as a divider.
Where the number on the left is multiplied/divided by 2 * (number on right)
However be aware that since it's a binary operation(i guess you can call it that) it will throw away the any decimals you get so instead of 5 >> 1 = 2.5 you get 2
Re: Aretmetic combinator
Posted: Tue May 02, 2017 8:01 am
by Shaymes
thx for help acual i dont see any use for it in my factory atm but maybe becomes usefull later
after i know its "aretmetic shift" i found this
https://www.youtube.com/watch?v=fDKUq38H2jk