Mpanova binary/hexadecimal/decimal

Manova isa amin'ny alalan'ny binary, octal, decimal ary hexadecimal, miaraka amin'ny fafana fizarazarana.

Isa decimal —
Binary —
Hexadecimal —
Octal —
Haben'ny bit —

Manova ny valin'ny fanoratanao.

Nanome anao ny valinteny marina ve ity milina fanisana ity?

Momba ity kapila ity

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.

Fanontaniana matetika

Ahoana no ahafahako manova ny decimal ho hexadecimal?

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.

Nahoana no ampiasaina ny hexadecimal amin'ny solosaina?

Each hex digit maps to exactly four binary bits, so hex is a compact, readable way to write byte values and memory addresses — 0xFF is one byte of all ones.

Afaka mametraka isa manana tovon'ny 0x, 0b na 0o ve aho?

Eny. Voafafa hoazy ny tovon'ny 0x (hexadecimal), 0b (binary) na 0o (octal) aloha, ka ahafahanao mametraka sanda avy hatrany amin'ny alalan'ny rindran'asa. Ataovy azo antoka fotsiny fa mifanaraka amin'ny isa voasoratrao ny fototra fandefasana ataonao.

Inona no lazain'ny halavan'ny bit amiko?

Io no isan'ny isa binary ilaina amin'ilay sanda. 8 bit (byte iray) ny 255 decimal; 9 bit no ilaina amin'ny 256. Mety ampiasaina amin'ny fisafidianana karazana data sy fijerena raha mifanaraka amin'ny byte, teny 16 bit na rejisitry ny 32 bit ny sanda ny halavan'ny bit.

Inona no atao hoe octal?

Ny octal dia mametraka ny bit amin'ny alalan'ny telo ary hita indrindra amin'ny fahazoan-dàlana Unix (toy ny 755 na 644) sy ny rafitra taloha sasany. Ny isa octal tsirairay dia mametraka bit binary telo marina, toy ny fomba fandefasana ny isa hex amin'ny efatra.

Nahoana no nahazo "laharan'ny fototra tsy mety" aho?

Tsy azo ekena ao anatin'ny fototra voafaritra ny isa iray nalefao - ohatra, ny litera F na ny isa 8 ao anatin'ny isa binary, izay 0 sy 1 ihany no azo ekena. Ovay ny fototra amin'ny fandefasana mba hifanaraka amin'ny sandanao, na ovay ny isa tsy ao anatin'ny fototra.

❤️ Fitiavana Calculator.Free? Zarao

𝕏  X Facebook Reddit
API — mampiasa io milina fanisana io avy amin'ny rindran'asa

Antsoy ho toy ny farany JSON malalaka ity milina fanisana ity - tsy mila famaha. Mandefa ireo sanda eo amin'ny sehatr'asa etsy ambany ho toy ny mpizaratry ny fanontaniana na JSON. Ny zavatra tsy voalaza dia mampiasa ny sanda tsotra efa nameno ity pejy ity; 400 ny sanda tsy fantatra, tsy aotra tsy misy feo. Vakio ny tahirin-kevitra API feno →

Endpoint

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

Ny voka-pikarohana dia natao ho an'ny torohevitra ankapobeny ihany, tsy torohevitra ara-bola, ara-pitsaboana na ara-bola.