Difference between revisions of "LogicalNot - Math"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Bot Owned
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Math Script Inverts arg1's bits. == Syntax == <source lang="papyrus"> int Function Lo...")
 
imported>Foxox
(Important information about behavior of this function)
 
Line 5: Line 5:


Inverts arg1's bits.
Inverts arg1's bits.
Despite being named "Logical", this function performs a bitwise operation.
Ordinary [[Operator Reference#Logical Operators|logical operators]] are available in vanilla Papyrus.


== Syntax ==
== Syntax ==

Latest revision as of 17:24, 17 November 2014

SKSE Member of: Math Script

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

See Also[edit | edit source]