Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Preferred Bits Format

Preferred Bits Format

Scheduled Pinned Locked Moved The Lounge
12 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BernardIE5317
    wrote on last edited by
    #1

    Greetings Kind Regards May I please request preferred format of display of bits id est as a continuous string or as separate bytes exempli gratia "0101010101010101" or "01010101 01010101". Thank You Kindly

    0 J A T T 5 Replies Last reply
    0
    • B BernardIE5317

      Greetings Kind Regards May I please request preferred format of display of bits id est as a continuous string or as separate bytes exempli gratia "0101010101010101" or "01010101 01010101". Thank You Kindly

      0 Offline
      0 Offline
      0x01AA
      wrote on last edited by
      #2

      I prefer nibbles, this because more easy to convert them in brain who's into hex. 0101 0101 0101 0101

      Mircea NeacsuM 1 Reply Last reply
      0
      • 0 0x01AA

        I prefer nibbles, this because more easy to convert them in brain who's into hex. 0101 0101 0101 0101

        Mircea NeacsuM Offline
        Mircea NeacsuM Offline
        Mircea Neacsu
        wrote on last edited by
        #3

        Even better: 0101 0101 0101 0101 It uses narrow space (U+2009 or HTML &thinspace;) between nibbles and normal space between bytes. For added emphasis you can use emspace (U+2003 or  ) between bytes: 0101 0101 0101 0101

        Mircea

        J 1 Reply Last reply
        0
        • B BernardIE5317

          Greetings Kind Regards May I please request preferred format of display of bits id est as a continuous string or as separate bytes exempli gratia "0101010101010101" or "01010101 01010101". Thank You Kindly

          J Offline
          J Offline
          Jeremy Falcon
          wrote on last edited by
          #4

          As Ox01AA said, bytes or nibbles work. And ideally it would be nice if endianness was indicated somehow.

          Jeremy Falcon

          1 Reply Last reply
          0
          • Mircea NeacsuM Mircea Neacsu

            Even better: 0101 0101 0101 0101 It uses narrow space (U+2009 or HTML &thinspace;) between nibbles and normal space between bytes. For added emphasis you can use emspace (U+2003 or  ) between bytes: 0101 0101 0101 0101

            Mircea

            J Offline
            J Offline
            Jeremy Falcon
            wrote on last edited by
            #5

            Look at that, them binary digits getting a haircut to be all fancy. :laugh:

            Jeremy Falcon

            Mircea NeacsuM G 2 Replies Last reply
            0
            • B BernardIE5317

              Greetings Kind Regards May I please request preferred format of display of bits id est as a continuous string or as separate bytes exempli gratia "0101010101010101" or "01010101 01010101". Thank You Kindly

              A Offline
              A Offline
              Amarnath S
              wrote on last edited by
              #6

              Would converting those nibbles to hex be more convenient? I mean more human-readable.

              B 1 Reply Last reply
              0
              • J Jeremy Falcon

                Look at that, them binary digits getting a haircut to be all fancy. :laugh:

                Jeremy Falcon

                Mircea NeacsuM Offline
                Mircea NeacsuM Offline
                Mircea Neacsu
                wrote on last edited by
                #7

                We are just bit players, but stylish ones at that :laugh:

                Mircea

                1 Reply Last reply
                0
                • A Amarnath S

                  Would converting those nibbles to hex be more convenient? I mean more human-readable.

                  B Offline
                  B Offline
                  BernardIE5317
                  wrote on last edited by
                  #8

                  I am writing a "super_format_integer" routine which generates every conceivable format string id est hex dec oct bin SI IEC words and provides every conceivable option for each base.

                  A 1 Reply Last reply
                  0
                  • B BernardIE5317

                    Greetings Kind Regards May I please request preferred format of display of bits id est as a continuous string or as separate bytes exempli gratia "0101010101010101" or "01010101 01010101". Thank You Kindly

                    T Offline
                    T Offline
                    trønderen
                    wrote on last edited by
                    #9

                    My very first experience with programming was on a Univac 1100 system, so I'd prefer "010101 010101 0101xx". However, halfword support was somewhat limited on the U1100, so usually, it would be "010101 010101 010101 010101 010101 010101". For a more compact format, I would use octal: "444444". :-) (On the serious side: In the 1950s, 60s and to some degree the 70s, a lot of machine architectures were based on units of 3 bits - there were 12-bit, 18-bit, 24-bit, 36 and 72-bit register widths and instruction word sizes. There even was a 42-bit machine (GIER) - but it doesn't really count, as 42 bits only applied to float: A 10 bit exponent and a 32 bit mantissa.)

                    Religious freedom is the freedom to say that two plus two make five.

                    1 Reply Last reply
                    0
                    • B BernardIE5317

                      I am writing a "super_format_integer" routine which generates every conceivable format string id est hex dec oct bin SI IEC words and provides every conceivable option for each base.

                      A Offline
                      A Offline
                      Amarnath S
                      wrote on last edited by
                      #10

                      Wow! Will be valuable if it comes up here on CP as an article.

                      1 Reply Last reply
                      0
                      • B BernardIE5317

                        Greetings Kind Regards May I please request preferred format of display of bits id est as a continuous string or as separate bytes exempli gratia "0101010101010101" or "01010101 01010101". Thank You Kindly

                        T Offline
                        T Offline
                        TNCaver
                        wrote on last edited by
                        #11

                        Groups of four bits are the quickest visual to understand: 0101 0101 0101 0101

                        There are no solutions, only trade-offs.
                           - Thomas Sowell

                        A day can really slip by when you're deliberately avoiding what you're supposed to do.
                           - Calvin (Bill Watterson, Calvin & Hobbes)

                        1 Reply Last reply
                        0
                        • J Jeremy Falcon

                          Look at that, them binary digits getting a haircut to be all fancy. :laugh:

                          Jeremy Falcon

                          G Offline
                          G Offline
                          Gary Wheeler
                          wrote on last edited by
                          #12

                          :laugh:

                          Software Zen: delete this;

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups