LogicalNot - Math

Revision as of 18:24, 17 November 2014 by imported>Foxox (Important information about behavior of this function)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

SyntaxEdit

int Function LogicalNot(int arg1) global native

ParametersEdit

  • arg1: The value to bit inverse.

Return ValueEdit

The decimal result of the bit inverse.

ExamplesEdit

int iA = Math.LogicalNot(0x000063D8) ;iA == -25561
int iC = Math.LogicalNot(127) ;iC == -128

See AlsoEdit