Closed yihuajack closed 1 year ago
Another issue is that conventionally binary numbers are represented with leading zeros to fill all the bits to disambiguate with 2's complement. However, decimal numbers are represented without leading zeros. Should numbers in other bases be represented with or without leading zeros? Currently, only decimal numbers are represented without leading zeros.
Should numbers in other bases be represented with or without leading zeros?
I'd assume that for now we can treat the number as unsigned by default. It would be nice to be able to specify if a number is signed or unsigned though.
Support base 2~33 (base 34 has 'X' issue); add argument -r or --radix; control displayed widths