{
  "id": "enwiki-001378025641",
  "slug": "bit-inversion",
  "title": "Bit inversion",
  "qid": "",
  "lead": "In computing and telecommunications, bit inversion refers to the changing of the state of a bit or binary number to the opposite state, for example changing a 0 bit to 1 or vice versa. It is often represented with a tilde (~). It also refers to the changing of a state representing a given bit to the opposite state.",
  "body": "In computing and telecommunications, bit inversion refers to the changing of the state of a bit or binary number to the opposite state, for example changing a 0 bit to 1 or vice versa. It is often represented with a tilde (~). It also refers to the changing of a state representing a given bit to the opposite state. ==Usage in computing== Many popular programming languages implement bit inversion as an operation. For example, in JavaScript, bit inversion is known as a 'bitwise NOT' and is implemented as seen below: var a = 2; var b = ~ a; In this example, a is a 32-bit signed integer and in binary would be . Variable is the bit inversion of variable and equals (−3 in decimal). In Python: >>> a = 2 >>> b = ~ a >>> b -3",
  "categories": [
    "131300176",
    "23468805",
    "23603337",
    "26220375",
    "26382118"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1378025641",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1790944129.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001378025641",
    "type": "webpage",
    "title": "Bit inversion",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/bit-inversion",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001378025641",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1378025641",
    "note": "Immutable snapshot enwiki-001378025641"
  }
}