BitNot does not flip bits in the way I expectedBitwise operators - Hamlet for MathematicaHow does Mathematica decide that Log[2,8] is integer?How is the mysterious Raw function used?Graph from binary matrix (not adjacency) respecting the original matrix positionsHow to replace the selected value in matrix with a specific digit?Performance-driven approach to using Big Data without killing the hard-driveUsing the binary search algorithm in a sorted grid

How are such low op-amp input currents possible?

Why does Captain Marvel assume the planet where she lands would recognize her credentials?

Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?

Accountant/ lawyer will not return my call

Good allowance savings plan?

How does airport security verify that you can carry a battery bank over 100 Wh?

Latest web browser compatible with Windows 98

Grey hair or white hair

Is Gradient Descent central to every optimizer?

Algorithm to convert a fixed-length string to the smallest possible collision-free representation?

Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

Aliens englobed the Solar System: will we notice?

Could you please stop shuffling the deck and play already?

Peter's Strange Word

Does "variables should live in the smallest scope as possible" include the case "variables should not exist if possible"?

Do f-stop and exposure time perfectly cancel?

Does a Catoblepas statblock appear in an official D&D 5e product?

A three room house but a three headED dog

Why would one plane in this picture not have gear down yet?

Why doesn't this Google Translate ad use the word "Translation" instead of "Translate"?

A question on the ultrafilter number

What are the best books to study Neural Networks from a purely mathematical perspective?

How to pass a string to a command that expects a file?

Good for you! in Russian



BitNot does not flip bits in the way I expected


Bitwise operators - Hamlet for MathematicaHow does Mathematica decide that Log[2,8] is integer?How is the mysterious Raw function used?Graph from binary matrix (not adjacency) respecting the original matrix positionsHow to replace the selected value in matrix with a specific digit?Performance-driven approach to using Big Data without killing the hard-driveUsing the binary search algorithm in a sorted grid













3












$begingroup$


Can anyone explain why the last result in these statements is not the bit-flipped version of arr?



(Debug) In[189]:= arr = 0, 0, 1, 0, 0, 0, 1, 0

(Debug) Out[189]= 0, 0, 1, 0, 0, 0, 1, 0

(Debug) In[190]:= FromDigits[%, 2]

(Debug) Out[190]= 34

(Debug) In[191]:= BitNot[%]

(Debug) Out[191]= -35

(Debug) In[192]:= IntegerDigits[%, 2, 8]

(Debug) Out[192]= 0, 0, 1, 0, 0, 0, 1, 1









share|improve this question









New contributor




bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$







  • 4




    $begingroup$
    "IntegerDigits[n] discards the sign of n."
    $endgroup$
    – kglr
    7 hours ago











  • $begingroup$
    Is there a work around?
    $endgroup$
    – bc888
    7 hours ago










  • $begingroup$
    not any I know of.
    $endgroup$
    – kglr
    7 hours ago










  • $begingroup$
    BitNot should yield 221
    $endgroup$
    – bc888
    7 hours ago






  • 6




    $begingroup$
    Integers can have arbitrary length, so how many leading zeros should be flipped? The documentation clarifies: "Integers are assumed to be represented in two's complement form, with an unlimited number of digits, so that BitNot[n] is simply equivalent to -1-n."
    $endgroup$
    – Chip Hurst
    7 hours ago















3












$begingroup$


Can anyone explain why the last result in these statements is not the bit-flipped version of arr?



(Debug) In[189]:= arr = 0, 0, 1, 0, 0, 0, 1, 0

(Debug) Out[189]= 0, 0, 1, 0, 0, 0, 1, 0

(Debug) In[190]:= FromDigits[%, 2]

(Debug) Out[190]= 34

(Debug) In[191]:= BitNot[%]

(Debug) Out[191]= -35

(Debug) In[192]:= IntegerDigits[%, 2, 8]

(Debug) Out[192]= 0, 0, 1, 0, 0, 0, 1, 1









share|improve this question









New contributor




bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$







  • 4




    $begingroup$
    "IntegerDigits[n] discards the sign of n."
    $endgroup$
    – kglr
    7 hours ago











  • $begingroup$
    Is there a work around?
    $endgroup$
    – bc888
    7 hours ago










  • $begingroup$
    not any I know of.
    $endgroup$
    – kglr
    7 hours ago










  • $begingroup$
    BitNot should yield 221
    $endgroup$
    – bc888
    7 hours ago






  • 6




    $begingroup$
    Integers can have arbitrary length, so how many leading zeros should be flipped? The documentation clarifies: "Integers are assumed to be represented in two's complement form, with an unlimited number of digits, so that BitNot[n] is simply equivalent to -1-n."
    $endgroup$
    – Chip Hurst
    7 hours ago













3












3








3


1



$begingroup$


Can anyone explain why the last result in these statements is not the bit-flipped version of arr?



(Debug) In[189]:= arr = 0, 0, 1, 0, 0, 0, 1, 0

(Debug) Out[189]= 0, 0, 1, 0, 0, 0, 1, 0

(Debug) In[190]:= FromDigits[%, 2]

(Debug) Out[190]= 34

(Debug) In[191]:= BitNot[%]

(Debug) Out[191]= -35

(Debug) In[192]:= IntegerDigits[%, 2, 8]

(Debug) Out[192]= 0, 0, 1, 0, 0, 0, 1, 1









share|improve this question









New contributor




bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




Can anyone explain why the last result in these statements is not the bit-flipped version of arr?



(Debug) In[189]:= arr = 0, 0, 1, 0, 0, 0, 1, 0

(Debug) Out[189]= 0, 0, 1, 0, 0, 0, 1, 0

(Debug) In[190]:= FromDigits[%, 2]

(Debug) Out[190]= 34

(Debug) In[191]:= BitNot[%]

(Debug) Out[191]= -35

(Debug) In[192]:= IntegerDigits[%, 2, 8]

(Debug) Out[192]= 0, 0, 1, 0, 0, 0, 1, 1






binary






share|improve this question









New contributor




bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 6 hours ago









m_goldberg

87.4k872198




87.4k872198






New contributor




bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 7 hours ago









bc888bc888

363




363




New contributor




bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 4




    $begingroup$
    "IntegerDigits[n] discards the sign of n."
    $endgroup$
    – kglr
    7 hours ago











  • $begingroup$
    Is there a work around?
    $endgroup$
    – bc888
    7 hours ago










  • $begingroup$
    not any I know of.
    $endgroup$
    – kglr
    7 hours ago










  • $begingroup$
    BitNot should yield 221
    $endgroup$
    – bc888
    7 hours ago






  • 6




    $begingroup$
    Integers can have arbitrary length, so how many leading zeros should be flipped? The documentation clarifies: "Integers are assumed to be represented in two's complement form, with an unlimited number of digits, so that BitNot[n] is simply equivalent to -1-n."
    $endgroup$
    – Chip Hurst
    7 hours ago












  • 4




    $begingroup$
    "IntegerDigits[n] discards the sign of n."
    $endgroup$
    – kglr
    7 hours ago











  • $begingroup$
    Is there a work around?
    $endgroup$
    – bc888
    7 hours ago










  • $begingroup$
    not any I know of.
    $endgroup$
    – kglr
    7 hours ago










  • $begingroup$
    BitNot should yield 221
    $endgroup$
    – bc888
    7 hours ago






  • 6




    $begingroup$
    Integers can have arbitrary length, so how many leading zeros should be flipped? The documentation clarifies: "Integers are assumed to be represented in two's complement form, with an unlimited number of digits, so that BitNot[n] is simply equivalent to -1-n."
    $endgroup$
    – Chip Hurst
    7 hours ago







4




4




$begingroup$
"IntegerDigits[n] discards the sign of n."
$endgroup$
– kglr
7 hours ago





$begingroup$
"IntegerDigits[n] discards the sign of n."
$endgroup$
– kglr
7 hours ago













$begingroup$
Is there a work around?
$endgroup$
– bc888
7 hours ago




$begingroup$
Is there a work around?
$endgroup$
– bc888
7 hours ago












$begingroup$
not any I know of.
$endgroup$
– kglr
7 hours ago




$begingroup$
not any I know of.
$endgroup$
– kglr
7 hours ago












$begingroup$
BitNot should yield 221
$endgroup$
– bc888
7 hours ago




$begingroup$
BitNot should yield 221
$endgroup$
– bc888
7 hours ago




6




6




$begingroup$
Integers can have arbitrary length, so how many leading zeros should be flipped? The documentation clarifies: "Integers are assumed to be represented in two's complement form, with an unlimited number of digits, so that BitNot[n] is simply equivalent to -1-n."
$endgroup$
– Chip Hurst
7 hours ago




$begingroup$
Integers can have arbitrary length, so how many leading zeros should be flipped? The documentation clarifies: "Integers are assumed to be represented in two's complement form, with an unlimited number of digits, so that BitNot[n] is simply equivalent to -1-n."
$endgroup$
– Chip Hurst
7 hours ago










4 Answers
4






active

oldest

votes


















2












$begingroup$

I don't think there is a built-in function to generate the two's complement representation. Easy to implement though.



twosComplement[x_, n_] := IntegerDigits[2^x - n, 2, n]
twosComplement[35, 8]
(* 1, 1, 0, 1, 1, 1, 0, 1 *)





share|improve this answer









$endgroup$




















    5












    $begingroup$

    twosComplement[x_, n_] := UnitBox@IntegerDigits[x, 2, n]
    twosComplement[35, 8]



    1, 1, 0, 1, 1, 1, 0, 1







    share|improve this answer









    $endgroup$




















      2












      $begingroup$

      FlipBits[num_Integer, len_.] := 
      Module[arr, arr = IntegerDigits[num, 2, len];
      1 - arr]





      share|improve this answer








      New contributor




      bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      $endgroup$




















        1












        $begingroup$

        Without using IntegerDigits[]:



        With[n = 34, 
        n, BitXor[BitShiftLeft[1, BitLength[n]] - 1, n] // BaseForm[#, 2] &]
        100010₂, 11101₂

        With[n = 34, p = 8,
        n, BitXor[BitShiftLeft[1, p] - 1, n] // BaseForm[#, 2] &]
        100010₂, 11011101₂





        share|improve this answer









        $endgroup$












          Your Answer





          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "387"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          bc888 is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f193136%2fbitnot-does-not-flip-bits-in-the-way-i-expected%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          4 Answers
          4






          active

          oldest

          votes








          4 Answers
          4






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2












          $begingroup$

          I don't think there is a built-in function to generate the two's complement representation. Easy to implement though.



          twosComplement[x_, n_] := IntegerDigits[2^x - n, 2, n]
          twosComplement[35, 8]
          (* 1, 1, 0, 1, 1, 1, 0, 1 *)





          share|improve this answer









          $endgroup$

















            2












            $begingroup$

            I don't think there is a built-in function to generate the two's complement representation. Easy to implement though.



            twosComplement[x_, n_] := IntegerDigits[2^x - n, 2, n]
            twosComplement[35, 8]
            (* 1, 1, 0, 1, 1, 1, 0, 1 *)





            share|improve this answer









            $endgroup$















              2












              2








              2





              $begingroup$

              I don't think there is a built-in function to generate the two's complement representation. Easy to implement though.



              twosComplement[x_, n_] := IntegerDigits[2^x - n, 2, n]
              twosComplement[35, 8]
              (* 1, 1, 0, 1, 1, 1, 0, 1 *)





              share|improve this answer









              $endgroup$



              I don't think there is a built-in function to generate the two's complement representation. Easy to implement though.



              twosComplement[x_, n_] := IntegerDigits[2^x - n, 2, n]
              twosComplement[35, 8]
              (* 1, 1, 0, 1, 1, 1, 0, 1 *)






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered 7 hours ago









              Rohit NamjoshiRohit Namjoshi

              1,3061213




              1,3061213





















                  5












                  $begingroup$

                  twosComplement[x_, n_] := UnitBox@IntegerDigits[x, 2, n]
                  twosComplement[35, 8]



                  1, 1, 0, 1, 1, 1, 0, 1







                  share|improve this answer









                  $endgroup$

















                    5












                    $begingroup$

                    twosComplement[x_, n_] := UnitBox@IntegerDigits[x, 2, n]
                    twosComplement[35, 8]



                    1, 1, 0, 1, 1, 1, 0, 1







                    share|improve this answer









                    $endgroup$















                      5












                      5








                      5





                      $begingroup$

                      twosComplement[x_, n_] := UnitBox@IntegerDigits[x, 2, n]
                      twosComplement[35, 8]



                      1, 1, 0, 1, 1, 1, 0, 1







                      share|improve this answer









                      $endgroup$



                      twosComplement[x_, n_] := UnitBox@IntegerDigits[x, 2, n]
                      twosComplement[35, 8]



                      1, 1, 0, 1, 1, 1, 0, 1








                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered 7 hours ago









                      Okkes DulgerciOkkes Dulgerci

                      5,3541918




                      5,3541918





















                          2












                          $begingroup$

                          FlipBits[num_Integer, len_.] := 
                          Module[arr, arr = IntegerDigits[num, 2, len];
                          1 - arr]





                          share|improve this answer








                          New contributor




                          bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          $endgroup$

















                            2












                            $begingroup$

                            FlipBits[num_Integer, len_.] := 
                            Module[arr, arr = IntegerDigits[num, 2, len];
                            1 - arr]





                            share|improve this answer








                            New contributor




                            bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






                            $endgroup$















                              2












                              2








                              2





                              $begingroup$

                              FlipBits[num_Integer, len_.] := 
                              Module[arr, arr = IntegerDigits[num, 2, len];
                              1 - arr]





                              share|improve this answer








                              New contributor




                              bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.






                              $endgroup$



                              FlipBits[num_Integer, len_.] := 
                              Module[arr, arr = IntegerDigits[num, 2, len];
                              1 - arr]






                              share|improve this answer








                              New contributor




                              bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.









                              share|improve this answer



                              share|improve this answer






                              New contributor




                              bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.









                              answered 7 hours ago









                              bc888bc888

                              363




                              363




                              New contributor




                              bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.





                              New contributor





                              bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.






                              bc888 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.





















                                  1












                                  $begingroup$

                                  Without using IntegerDigits[]:



                                  With[n = 34, 
                                  n, BitXor[BitShiftLeft[1, BitLength[n]] - 1, n] // BaseForm[#, 2] &]
                                  100010₂, 11101₂

                                  With[n = 34, p = 8,
                                  n, BitXor[BitShiftLeft[1, p] - 1, n] // BaseForm[#, 2] &]
                                  100010₂, 11011101₂





                                  share|improve this answer









                                  $endgroup$

















                                    1












                                    $begingroup$

                                    Without using IntegerDigits[]:



                                    With[n = 34, 
                                    n, BitXor[BitShiftLeft[1, BitLength[n]] - 1, n] // BaseForm[#, 2] &]
                                    100010₂, 11101₂

                                    With[n = 34, p = 8,
                                    n, BitXor[BitShiftLeft[1, p] - 1, n] // BaseForm[#, 2] &]
                                    100010₂, 11011101₂





                                    share|improve this answer









                                    $endgroup$















                                      1












                                      1








                                      1





                                      $begingroup$

                                      Without using IntegerDigits[]:



                                      With[n = 34, 
                                      n, BitXor[BitShiftLeft[1, BitLength[n]] - 1, n] // BaseForm[#, 2] &]
                                      100010₂, 11101₂

                                      With[n = 34, p = 8,
                                      n, BitXor[BitShiftLeft[1, p] - 1, n] // BaseForm[#, 2] &]
                                      100010₂, 11011101₂





                                      share|improve this answer









                                      $endgroup$



                                      Without using IntegerDigits[]:



                                      With[n = 34, 
                                      n, BitXor[BitShiftLeft[1, BitLength[n]] - 1, n] // BaseForm[#, 2] &]
                                      100010₂, 11101₂

                                      With[n = 34, p = 8,
                                      n, BitXor[BitShiftLeft[1, p] - 1, n] // BaseForm[#, 2] &]
                                      100010₂, 11011101₂






                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered 6 hours ago









                                      J. M. is slightly pensive♦J. M. is slightly pensive

                                      97.8k10304464




                                      97.8k10304464




















                                          bc888 is a new contributor. Be nice, and check out our Code of Conduct.









                                          draft saved

                                          draft discarded


















                                          bc888 is a new contributor. Be nice, and check out our Code of Conduct.












                                          bc888 is a new contributor. Be nice, and check out our Code of Conduct.











                                          bc888 is a new contributor. Be nice, and check out our Code of Conduct.














                                          Thanks for contributing an answer to Mathematica Stack Exchange!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid …


                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.

                                          Use MathJax to format equations. MathJax reference.


                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function ()
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f193136%2fbitnot-does-not-flip-bits-in-the-way-i-expected%23new-answer', 'question_page');

                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Which organization defines CJK Unified Ideographs? The Next CEO of Stack OverflowCharacters which have several different shapesHow useful are the kanji in reading Chinese?Can Chinese readers scan large amounts of text faster/more accurately than their alphabet-using counterparts?丼: why is “well” also “bowl of food”?What Does Unicode 8.0 Mean For Chinese?How are blanks indicated for placeholders in Chinese (like ???)Is there a dictionary of standard character variants?How to display CJK Extension F?How is it decided as to which character is used on the tech terminology?How does 子 come to mean 'midnight'?

                                          Shenzhen Football Club Índice Elenco atual | Títulos | Referências Ligações externas | Menu de navegaçãoGooglenotíciaslivrosacadêmicoeditar«"Elenco"»Site oficialexpandindo-oeee

                                          When We Were Young (canção de Adele) Índice Antecedentes e lançamento | Faixas e formatos | Performances e covers | Desempenho nas tabelas musicais | Créditos | Histórico de lançamento | Referências Menu de navegação«Best albums of 2015»«Adele - When We Were Young (Radio Date: 22-01-2016)»«When We Were Young - Single by Adele»«Adele: Inside Her Private Life and Triumphant Return»«adele interview: world exclusive first interview in three years»«Tobias Jesso Jr: since Adele tweeted his song, he's even bigger than his dad»«Adele interviews Tobias Jesso Jr: 'I think that a couple of the ideas we had could be rap songs'»«Adele on Her Return: 'I Was So Frightened That No One Cared'»«Tobias Jesso Jr. on working with Adele: 'I was as nervous as shit'»«How Ariel Rechtshaid Pushed Adele To Her Limit»«Adele Previews 'When We Were Young' on '60 Minutes' Teaser, Tops Trending 140»«Adele Performs New '25' Ballad, "When We Were Young" Live: Watch»«Which '25' Song Should Be Adele's Next Single?»«Adele's 'When We Were Young' Confirmed As Second Single From '25'»«Adele's new single artwork for 'When We Were Young' is perfectly adorable»«Adele at the BBC review: honest, funny and spectacular – Celebrity News News»«'Saturday Night Live': Adele Sings 'Hello' and 'When We Were Young'»«'Adele: Live in New York City' NBC Special – Set List Revealed!»«Adele Closes Out the 2016 Brit Awards With 'When We Were Young'»«What Is The Adele Live Tour Set List? There's No Way She'd Leave Out These 8 Songs»«See Demi Lovato's Soaring Cover of Adele's 'When We Were Young'»«'The Voice': 5 Best Moments From Week 1 Blind Auditions»«Adele – When We Were Young (Media Control Charts)»«Adele – When We Were Young (Entertainment Monitoring Africa)»«Adele – When We Were Young (ARIA Charts)»«Adele – When We Were Young (Ö3 Austria Top 40)»«Adele – When We Were Young (Ultratop 50)»«Adele – When We Were Young (Ultratop 40)»«Adele – When We Were Young (Canadian Hot 100)»«Adele – When We Were Young (Tracklisten)»«Adele – When We Were Young (The Official Charts Company)»«Adele – Hello (IFPI Slovenská Republika)»«Adele – When We Were Young (Productores de Música de España)»«Adele – When We Were Young (Billboard Hot 100)»«Adele – When We Were Young (Pop Songs)»«Adele – When We Were Young (Adult Pop Songs)»«Adele – When We Were Young (Hot Adult Contemporary Charts)»«Adele – When We Were Young (Hot Dance Club Songs)»«Adele – When We Were Young (Rock Airplay)»«Adele – When We Were Young (IFPI Finlândia)»«Adele – When We Were Young (Syndicat National de l'Éditon Phonographique)»«Adele – When We Were Young (Magyar Hanglemezkiadók Szövetsége)»«Adele – When We Were Young (Irish Recorded Music Association)»«Adele – When We Were Young (Mexico Airplay)»«Adele – When We Were Young (VG-lista)»«Adele – When We Were Young (NZ Top 40 Singles)»«Adele – When We Were Young (MegaCharts)»«Adele – When We Were Young (Związek Producentów Audio Video)»«Adele – When We Were Young (Portugal Digital Songs)»«Adele – When We Were Young (UK Indie Singles Chart)»«Adele – When We Were Young (UK Singles Chart)»«Adele – When We Were Young (Sverigetopplistan)»«Adele – When We Were Young (Schweizer Hitparade)»«Adele – When We Were Young (Portugal Digital Songs)»«Music Canada – Gold/Platinum – When We Were Young»«NZ Top 40 Singles Chart»«Certified Awards»e