[Python] Python integer type to binary string of signed integer representation [duplicate]

Discussão em 'Python' iniciado por Stack, Setembro 16, 2024.

  1. Stack

    Stack Membro Participativo

    I want to convert int type of python to signed integer with specified width.

    But, converting -3 using bin() returning -0b11 instead of 1101 in 4-bit system.

    Continue reading...

Compartilhe esta Página