基数変換ツール
2進数、8進数、10進数、16進数、および2から36までの任意の基数間で数値を変換します。
0b
0o
0x
Tip: Edit any field and all others will update automatically. Supports negative numbers.
数値の基数システム - 技術的な詳細
数値の基数は、値を表すために使用される一意の数字の数を定義します。2進数(基数2)は0-1を使用、8進数(基数8)は0-7を使用、10進数(基数10)は0-9を使用、16進数(基数16)は0-9とA-Fを使用します。2から36までの任意の基数は数字と文字を使用して表現できます。
コマンドラインでの代替方法
# Convert in terminal (using printf)\nprintf '%d\\n' 0xFF # Hex to decimal\nprintf '%x\\n' 255 # Decimal to hex\nprintf '%o\\n' 255 # Decimal to octal\n\n# In Python\nbin(255), oct(255), hex(255)