Difference between revisions of "Operator Reference"

17 bytes added ,  19:18, 10 June 2018
m
→‎Math Operators: corrected either a use of the term "byte" where "nibble" was intended, or use of a nibble count (6) where a byte count (3) was required.
imported>Cobalt027
imported>Homecom
m (→‎Math Operators: corrected either a use of the term "byte" where "nibble" was intended, or use of a nibble count (6) where a byte count (3) was required.)
Line 69: Line 69:
Note:
Note:
* Modulous unreliable for values greater than 0x80000000
* Modulous unreliable for values greater than 0x80000000
* Code that uses modulous to manually isolate the last 6 bytes of a formid will fail if the user has more than 127 mods installed.
* Code that uses modulous to manually isolate the low-order 3 bytes (6 nibbles) of a form ID will fail if the user has more than 127 mods installed.


<source lang="papyrus">
<source lang="papyrus">
Line 77: Line 77:
int ex4 = (0x80000002 % 0x01000000) ; = -0x00fffffe, not expected
int ex4 = (0x80000002 % 0x01000000) ; = -0x00fffffe, not expected
</source>
</source>


== Dot ==
== Dot ==
Anonymous user