Ayush Poddar's Wiki

      • Business
      • Financial philosophies and lessons
      • Investments and Personal Finance
      • Taxation
      • Documentation on some tools
      • Events, anecdotes and facts
      • Life Philosophies
      • Politics, governance and legals
      • Productivity
      • Climate change
      • High level designs - Software Systems
      • Industrial production
      • Software engineering

    Zero extension of binary vector

    Dec 16, 20241 min read

    • Unsigned numbers are converted to a larger data type
    • Add leading zeroes.

    Example

    unsigned short x = 17; // 0x0011
     
    int y = (int) x; //0x00000011

    Sources

    • Computer Systems - A Programmer’s Perspective

    Related Notes

    • Encoding unsigned integers as binary

    Graph View

    • Example
    • Sources
    • Related Notes

    Backlinks

    • Operations on signed and unsigned integers

    Created with Quartz v4.4.0 © 2024

    • GitHub
    • Discord Community