Ntụgharị

Kpọnye nọmba n'etiti binairi, oktal, desimali na heksadesimali, na táàbụ̀ nkwụsị.

Dézìmaịl —
Bánèrì —
Heksadesimal —
Óktàlụ̀ —
Oge bit —

Nhọrọ ndị ahụ ga-akpụzi mgbe ị na-etipụta.

Ọ bụrụ na ọbụna ọbụ

N'ihe banyere calculator a

A binary, hex and decimal converter shows the same whole number across number bases. Computers ultimately work in binary (base 2), but programmers routinely switch between bases to make values readable: decimal (base 10) for everyday quantities, hexadecimal (base 16) for byte values and memory addresses, and octal (base 8) for things like Unix file permissions. This converter takes a whole number in any of those four bases and shows it in all four at once, along with its bit length. The digits allowed in each base go up to one less than the base — binary uses 0–1, octal 0–7, decimal 0–9 and hex 0–9 then A–F for 10–15 — and the tool rejects digits that are out of range for the base you pick.

As a worked example, the decimal value 255 is FF in hexadecimal, 377 in octal and 11111111 in binary — eight bits all set, i.e. exactly one byte at its maximum. To convert decimal to hex by hand you repeatedly divide by 16 and read the remainders from last to first; the calculator does it instantly and also accepts input prefixed with 0x (hex), 0b (binary) or 0o (octal) and handles negative numbers.

The reason hexadecimal is so common in computing is that each hex digit maps to exactly four binary bits (a nibble), so two hex digits describe one byte with no ambiguity — which is why colour codes like #FF8800, MAC addresses and memory dumps are written in hex. This tool is handy for bit masks, colour values, debugging register contents and any low-level work where you need to see the same number across bases.

Ajụjụ ndị a na-ajụkarị

Olee otú m ga-esi gbanwee ndezi ka heksadesimal?

Repeatedly divide by 16 and read the remainders from last to first, using A–F for 10–15. Decimal 255 is FF in hex and 11111111 in binary.

Gịnị mere hexadecimal ji ahọrọ na computing?

Heksadigiti ọbụla na-egosipụta n'ụzọ ziri ezi na bitị banye anọ, yabụ heksa bụ ụzọ dị mfe ịgụta ya iji depụta baịtị váùtù na ebe nrụọrụ mebiri emebi - 0xFF bụ baịtị nke otu n'ime ha niile.

M ga-abanye nọmba na 0x, 0b mọọbụ 0o prefixes?

Ya. A na-ewepụ 0x (hex), 0b (binary) mọọbụ 0o (octal) prefix n'ozuzu ya, ka ị wee nwee ike iwepụ valiu site na koodị. Kwụsị n'ịhụ na ntinye okpuru ịhọrọla dị n'otu na dijitị ịbanyela.

Gịnị ka bit ogologo ahụ na-agwa m?

Ọ bụ ọnụọgụgụ nke banye digiti nke válụ̀ ahụ chọrọ. Decimal 255 bụ 8 bits (baịtị otu); 256 chọrọ 9 bits. Oge bit dị mkpa maka ịhọrọ ụdị data na ịlele ma ọ bụrụ na válụ̀ ahụ dị n'ime baịtị, 16-bit okwu mọọbụ 32-bit réjéèshì.

Gịnị bụ octal a na-eji maka?

Óktáìl̀ na-ahọpụta bítị̀ n'ime atọ́ na-egosikwa n'ime ikikè Unix faịlụ (dị ka 755 mọọbụ 644) nakwa ụfọdụ sistem ndị dị n'oge gara aga. Óktáìl̀ díjītà ọbụla mapụ ná banyéị̀tà atọ́, ụzọ nke hékśị̀tà ọbụla mapụ nà ̀bàrà.

Gịnị mere m ji nweta "ọnụọgụgụ na-adịghị adị maka okpuru a"?

Dijiti ịbanyela a na-anabataghị ya na base ahụ a họọrọ - dịka ọmụmaatụ, mkpụrụokwu F mọọbụ dijiti 8 na nọmba binaịra, nke na-anabata naanị 0 na 1. Kpụga input base ka ọ banye na váìlì gị, mọọbụ gbanwee dijiti n'ebe n'ebe.

❤️ Love Calculator.Free? Kpọnye ya

𝕏  X Facebook Reddit
API — jiri kaadị a site na kóòdù

Kpọọ kalkulata a dịka ebe ngwụcha JSON n'efu - enweghị kii achọrọ. Ziga valiu ebe ahụ n'okpuru dịka paramita ajụjụ mọọbụ JSON. Ihe ọbụla ị na-ewepụ na-eji dìfọ́ọ̀ltụ̀ nke a na-edebe ihuakwụkwọ a na ya; parameter a na-amaghị bụ 400, ọ dịghị sẽọ̀rọ̀. Gụọ ngwe ndị ahụ niile →

Ebemkpofuozi

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);

Ihe a na-ahụta bụ n'ihi nlekọta n'ozuzu ya, ọ bụghị nlekọta ego, ọgwụ ma ọ bụ nlekọta ego.