Konvertimi i bazë numrash

Konvertojë numrat midis binar, tetë-fishke, dhjetëfishke dhe heksadecimal.

Rezultati
Konvertimi

Rezultatet përditësohen ndërsa shkruani.

Në lidhje me këtë kalkulator

number base converters are used to convert a number from a 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 reexpresses that value in the target base. It reads your value in the source base, works out its plain decimal value, and reexpresses that value in the target base. It reads your value in the source base, works out its plain decimal value, and reexpresses that value in the target base.Worked example: the number 255 is 11 in binary and FF in hexadecimal. A results table shows the intermediate decimal value so you can check theWorked example: the number 255 is 11 in binary and FF in hexadecimal. A results table reports the intermediate decimal value so you can workWorkWorked example: the number 255 is 11 in binary and FF in hexadecimal. A results table reports the intermediate decimal value so you can workWorkWorked example: the number 255 is 111 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 111 in binary and FF in hexadecimal. A results table reports the intermediate decimal value so you can workWorked example: the number 255 is 11 in binary and FF in hexadecimal. A results table reports the intermediate decimal value so you can 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 111 in binary and FF in hexadecimal. A results table reports theWorked example

Pyetja e shpeshtë

Si e kthej decimalin në binar?

Ndaj përsëritshëm me 2 dhe lexo mbetjet nga poshtë lart. Për shembull, 10 në decimal është 1010 në binar, dhe 255 është 11.

Për çfarë përdoret heksadecimali?

Hexadecimal (baza 16) paketon katër bit binar në një shifër (0-9 pastaj A-F), kështu që është një mënyrë kompakte për të shkruar byte. Numri decimal 255 është FF në hex.

Pse numri im ka një vijë?

Shifrat duhet të jenë të vlefshme për bazën burimore, për shembull vetëm 0 dhe 1 në binar, ose 0-9 dhe A-F në hex. Një shifër e pavlefshme e bën rezultatin të papërcaktuar.

Çfarë do të thonë shkronjat A deri F në heksadecimal?

Ato janë shifra të vetme për vlerat nga 10 deri në 15: A është 10, B është 11, deri tek F që është 15. Kjo lejon bazë 16 të përshtatë numrat deri në 15 në një vend para se të duhet të mbajë.

Pse çdo shifër heksadecimale është e barabartë me katër shifra binare?

Për shkak se 16 është e barabartë me 2 në fuqinë e katërt, çdo shifër heksadecimale mbulon saktësisht katër bit. Kështu që byte 11 grupizon në 1 1, që është FF - ky konvertues i bazë numri e bën këtë grupim për ju.

A mund ta trajtojë ky konvertues numrat shumë të mëdhenj?

Punon me numra të plotë dhe është i saktë deri në intervalin e numrave të plotë që ruhen saktësisht (rreth 9 quadrillion, ose 2⁵³). Përtej kësaj, stringjet binare ose heksadecimale ekstremisht të gjata mund të humbasin saktësi në shifrat e tyre të fundit.

❤️ Dashuri. Calculator.Free? Shpërndaje.

𝕏  X Facebook Reddit
API — përdor këtë kalkulator nga kodi

Thirret ky kalkulator si një pikë e lirë përfundimtare JSON - nuk kërkohet kyç. Dërgo vlerat e fushës si parametra kërkimi ose JSON. Lexo dokumentet e plota të API →

Pika e fundit

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

Rezultatet janë vlerësime për udhëzime të përgjithshme vetëm, jo këshillime financiare, mjekësore apo taksash.