Difference between revisions of "Operator Reference"

492 bytes added ,  20:58, 20 October 2017
no edit summary
imported>Mattamue
imported>Cobalt027
Line 66: Line 66:
i = "Hello " + "World"
i = "Hello " + "World"
</source>
</source>
Note:
* 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.
<source lang="papyrus">
int ex1 = (0x7fffffff % 0x01000000) ; =  0x00ffffff as expected
int ex2 = (0x80000000 % 0x01000000) ; =  0x00000000 as expected
int ex3 = (0x80000001 % 0x01000000) ; = -0x00ffffff, not expected
int ex4 = (0x80000002 % 0x01000000) ; = -0x00fffffe, not expected
</source>


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