Bitwise operations in BC?

Posted by user355926 on Stack Overflow See other posts from Stack Overflow or by user355926
Published on 2010-06-01T23:14:35Z Indexed on 2010/06/01 23:23 UTC
Read the original article Hit count: 212

Filed under:
|
|
$ bc
BC> ibase=2
BC> 110&101                     // wanna get 100
(standar_in) 8: syntax error

Wikipedia informs that the ops are "|, & and ^". It may be that they work only in certain BC-types or I misread something.

© Stack Overflow or respective owner

Related posts about binary

Related posts about bitwise