Difference between revisions of "LogicalNot - Math"
Jump to navigation
Jump to search
imported>Qazaaq (Added F4SE member) |
imported>Qazaaq (added required f4se version) |
||
Line 1: | Line 1: | ||
'''F4SE Member of:''' [[Math Script]] | '''F4SE Member of:''' [[Math Script]] | ||
{{Template:Papyrus:RequiredF4SE|version=0.2.0}} | |||
Inverts arg1's bits. | Inverts arg1's bits. | ||
Line 28: | Line 26: | ||
== See Also == | == See Also == | ||
*[[Math Script]] | *[[Math Script]] | ||
[[Category:Scripting]] | |||
[[Category:Papyrus]] | |||
[[Category:F4SE]] |
Latest revision as of 17:43, 21 January 2018
F4SE Member of: Math Script
Requires F4SE version 0.2.0 or higher.
Inverts arg1's bits.
Despite being named "Logical", this function performs a bitwise operation. Ordinary logical operators are available in vanilla Papyrus.
Syntax[edit | edit source]
int Function LogicalNot(int arg1) Global Native
Parameters[edit | edit source]
- arg1: The value to bit inverse.
Return Value[edit | edit source]
The decimal result of the bit inverse.
Examples[edit | edit source]
int iA = Math.LogicalNot(0x000063D8) ;iA == -25561
int iC = Math.LogicalNot(127) ;iC == -128