Created
May 10, 2019 18:30
-
-
Save andrew-serrano/7541f84f82dfd543a3193381ff1522c5 to your computer and use it in GitHub Desktop.
Convert two's complement Miva
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mvt:comment> | |
Bitwise Operators | |
MDN: | |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#(Bitwise_NOT) | |
MivaScript: | |
http://www.mivascript.com/topic/operators.html | |
</mvt:comment> | |
<mvt:comment> | |
Negative -> Positive | |
</mvt:comment> | |
<mvt:eval expr="(BITOC -100) + 1" /> | |
<mvt:comment> | |
Positive -> Negative | |
</mvt:comment> | |
<mvt:eval expr="(BITOC 100) + 1" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment