数値基数変換

二進法、八進法、十進法、十六進法の間で数を変換します。

結果
変換

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

この計算機の情報

number base converter reads the value in the source base, works out its plain decimal value, and re-expresses that value in the target base. It reads your value in the source base, works out its plain decimal value, and re-expresses that value in the target base. It reads your value in the source base, works out its plain decimal value, and re-expresses that value in the target base. It reads your value in the source base, works out its plain decimal value, and re-expresses that value in the target base. It reads your value in the source base.Worked example: the number 255 is 11 in binary and FF in hexadecimal. A results table shows the same number in all four bases.WorkWorked example: the number 255 is 11 in binary and FF in hexadecimal. A results table reports the intermediate decimal value so you can check the working.WorkWorked example: the number 255 is 11 in binary and FF in hexadecimal.WorkWorked example: the number 255 is 11 in binary and FF in hexadecimal.WorkWorked example: the number 255 is 11 in binary and FF in hexadecimal.WorkWorked example: the number 255 is 11 in binary and FF in hexadecimal.WorkWorked example: the number 255 is 11 in binary and FF in hexadecimal.WorkWorked example: the number 255 is 11 in binary and FF in hexadecimal.WorkWorked example: the number 255 is 11 in binary and FF in hexadecimal.WorkWorked example: the number 255 is 11 in binary and FF in hexadecimal.WorkWorked example: the number 255 is 11 in binary

よくある質問

どうやって十進法から二進法に変換しますか?

2 で割り切って、残りを下から上へ読み込む。例えば、十進法で 10 は 2 進法で 1010 で、255 は 11 です。

十六進法は何に使われますか。

十六進法は 4 つの二進ビットを 1 桁に詰め込みます (0-9 次に A-F) それ故にバイトを書くのに コンパクトな方法です。十進数 255 は 16 進法で FF です。

なぜ私の番号はダッシュを示していますか。

数字はソースベースに対して有効でなければなりません。例えば、二進法では 0 と 1 のみ、ヘクサデシマルでは 0-9 と A-F のみです。無効な数字は結果を定義しません。

十六進法での文字AからFは何を意味しますか。

これらは10から15までの値に対して一桁の数字であり、Aは10、Bは11、Fは15である。これにより、基数16は15までの数字を一つの場所に収める。

なぜ16進数の数字は2進数の数字と同じである?

16 は 2 の 4 乗に等しいので、十六進数の数字は全て 4 ビットを占めます。つまり、バイト 11 は 11 にグループ化されます。これは FF です。この数値変換器はそれをグループ化します。

このコンバータは非常に大きな数を扱えるのですか。

これは整数に対して動作し、正確に整数を記憶できる範囲まで正確です(約9クワドリリオン、または2⁵³)。 それ以上の長さの二進法または十六進法文字列は最後の数字の精度を失う可能性があります。

❤️ ラブ Calculator.Free? 分けて

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

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

エンドポイント

GET https://calculator.free/api/v1/number-base/

curl

curl "https://calculator.free/api/v1/number-base/?amount=255&from=10&to=2"

JavaScript fetch()

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

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