二進法/十六進法/十進法変換

分解表を使って二進法、八進法、十進法、十六進法の間で数を変換します。

十進法
バイナリ
十六進法
八進法
ビット長

結果はタイプすると更新されます。

この計算機の情報

binary to hex converter is a tool that converts decimal to hex. It is a tool that converts decimal to hex. It is a tool that converts decimal to hex. It is a tool that converts decimal to hex. It is a tool that converts decimal to hex. It is a tool that converts decimal to hex. It is a tool that converts decimal to hex. It is a tool that converts decimal to hex. It is a tool that converts decimal to hex. It is a tool that converts decimal to hex. It is a tool that converts decimal to hex. It is a tool

よくある質問

十進法から十六進法に変換するにはどうしますか?

16で割り切って、残りを最後から最初まで読み、10-15はA-Fを使って、繰り返し読みます。十進法255はヘキサデシカルではFF、二進法では11です。

なぜ計算に十六進法を使うのか。

各ヘキサデシベルは正確に4ビットにマッピングされるため、ヘキサはバイト値とメモリアドレスを書き込むためのコンパクトで読みやすい方法である。

0x、0b、0o のプレフィックスを持つ数字を入力できますか?

はい。先頭の 0x (十六進法)、0b (二進法)、0o (八進法) プレフィックスは自動的に削除されます。コードから直接値を貼り付けることができます。ただし、入力基数を入力する数字と一致させる必要があります。

ビットの長さは何を示す?

値が必要とする二進数の数です。十進法 255 は 8 ビット (1 バイト) で、256 は 9 ビットです。ビット長はデータタイプを選択する際に役立ち、値がバイト、16 ビットワード、32 ビットレジスタに入るかどうかを確認するのに役立ちます。

八進法は何に使われる?

八進法はビットを 3 個に分割し、主に Unix ファイル権限 (例えば 755 や 644) や いくつかの古いシステムで見られます。 各八進数字は 16 進数の 4 桁にマッピングするように、 二進数の 3 桁にマッピングします。

なぜ「この基地の番号が無効です」と表示されるの?

入力した数字は選択した基数では許されません。例えば、文字 F や 2 進数の数字 8 は 0 と 1 のみを許可します。入力基数を変更して、入力した値に合わせまたは範囲外の数字を修正してください。

❤️ ラブ Calculator.Free? 分けて

𝕏  X Facebook Reddit
API — コードからこの計算機を使う

この計算機を自由な JSON エンドポイントとして呼び出します。鍵は必要ありません。下のフィールド値をクエリパラメータまたは JSON として送信します。 API ドキュメントを読む →

エンドポイント

GET https://calculator.free/api/v1/binary-hex/

curl

curl "https://calculator.free/api/v1/binary-hex/?value=255&base=10"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/binary-hex/?" + new URLSearchParams({
    "value": "255",
    "base": "10"
  }));
const data = await r.json();
console.log(data.results);

結果は一般的な指導のための推定であり,財務的,医療的または税務的なアドバイスではない。