-
Notifications
You must be signed in to change notification settings - Fork 93
Boolean Instructions
Haoxi Zhan edited this page Nov 30, 2013
·
2 revisions
Boolean instructions are defined in instructions/boolean.clj
. And, or, not and xor are very famous but there are several more instructions.
Type | Instruction | Usage | input | output |
---|---|---|---|---|
Boolean Calculations |
|
AND |
|
|
|
OR |
|
|
|
|
NOT |
|
|
|
|
XOR |
|
|
|
|
(AND (NOT A) B) |
|
|
|
|
(AND A (NOT B) |
|
|
|
Convert among types |
|
0 to false, other to true |
|
|
|
0.0 to false, other to true |
|
|