Isiseko senani

Iguqula amanani phakathi kwe binary, octal, decimal ne hexadecimal.

I-Index —
Uguqulelo —

Iinketho ze projekti

Ingaba le calculator ikunika umyalezo olungileyo?

Malunga nale Calculator

A number base converter rewrites an integer from one positional base to another — binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). It reads your value in the source base, works out its plain decimal value, and re-expresses that value in the target base.

Each base uses a fixed set of digits: 0–1 for binary, 0–7 for octal, 0–9 for decimal and 0–9 then A–F for hexadecimal, where A–F stand for 10–15. Because 16 is 2⁴, each hex digit maps to exactly four binary digits, which is why programmers use hex as shorthand for raw bytes.

Worked example: the decimal number 255 is 11111111 in binary and FF in hexadecimal, since 255 = 15×16 + 15. The converter also reports the intermediate decimal value so you can check the working. A results table shows the same number in all four bases at once, and an invalid digit for the chosen source base is flagged rather than silently miscounted.

Imibuzo ebuza rhoqo

Ndiguqula njani i-decimal kwi-binary?

Repeatedly divide by 2 and read the remainders from bottom to top. For example 10 in decimal is 1010 in binary, and 255 is 11111111.

I-hexadecimal isetyenziswa ntoni?

Hexadecimal (isiqu 16) ipakisha iibithi ezine ezibini kwinani elinye (0- 9 emva koko A- F), ngoko ke yindlela eqinileyo yokubhala i bytes. Inani elipheleleyo le 255 li FF kwi hex.

Kutheni le nto inani lam libonisa umgca?

Amasuntswana kufuneka asebenze kwisiseko somthombo - umzekelo kuphela 0 no-1 kwi-binary, okanye 0-9 no-A-F kwi-hex. Amasuntswana angasebenziyo asenza isiphumo singacaciswanga.

Yintoni ethetha ukuba iileta A ukuya ku F kwi hexadecimal?

Ziyimanani afanayo kumaxabiso asuka kwi-10 ukuya kwi-15: A yi-10, B yi-11, ukuya kwi-F eyiyo i-15. Oku kuvumela isiseko 16 silungelelana namanani ukuya kwi-15 kwindawo enye phambi kokuba kufuneka ithathe.

Kutheni i-hex nganye ilingana ne-binary emine?

Because 16 equals 2 to the fourth power, every hexadecimal digit covers exactly four bits. So the byte 11111111 groups into 1111 1111, which is FF — this number base converter does that grouping for you.

Ingaba lo mguquli uphatha amanani amakhulu kakhulu?

Isebenza kumanani apheleleyo kwaye ichanekile ukuya kuluhlu lwamanani apheleleyo agcinwe ngokuchanekileyo ( malunga ne 9 quadrillion, okanye 2⁵³). Ngapha koko, ibini efutshane kakhulu okanye imisonto ye hexadecimal ingalahla ugqibo kumasuntswana okugqibela.

❤️ Uthando Calculator.Free? Yabelana

𝕏  X Facebook Reddit
API — sebenzisa le calculator ukusuka kwikhowudi

Nceda le khadi lemali njengendawo esemva ye-JSON ekhululekileyo - akukho qhosha lifunekayo. Thumela amaxabiso endawo ezantsi njengeparameter yombuzo okanye i-JSON. Nantoni na oyenzayo isebenzisa okungagqibekanga okufanayo eli phepha ligqityiwe ngaphambili; iparameter engaziwayo yi 400, ayikho i zero ekhululekileyo. Funda i-API epheleleyo →

Incopho yesiphelo

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

Results are estimates for general guidance only, not financial, medical or tax advice.