Kusinthanitsa

Kusinthana mawerengeredwe pakati binary, octal, decimal ndi hexadecimal.

Chithunzi —
Kusintha —

Zithunzizi zimasintha monga momwe mumalemba.

Kodi izi calculator anakupatsani yankho labwino?

Zachidule

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.

Mafunso ofunsidwa nthawi zambiri

Kodi ndingasinthe decimal kuti 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.

Kodi ndi hexadecimal amagwiritsa ntchito?

Hexadecimal (base 16) packs four binary bits into one digit (0–9 then A–F), so it is a compact way to write bytes. The decimal number 255 is FF in hex.

N’chifukwa chiyani foni yanga imasonyeza dayo?

Zinayenera kukhala zoyenera kwa m’badwo woyamba - mwachitsanzo, 0 ndi 1 m’maudindo awiri, kapena 0-9 ndi A-F m’maudindo asanu ndi awiri. Zinayenera kukhala zoyenera kwa m’badwo woyamba.

Kodi malemba A mpaka F amatanthauza chiyani mu hexadecimal?

Iwo ndi ochepa digits kwa 10 mpaka 15: A ndi 10, B ndi 11, mpaka F amene ndi 15. Izi zimalola 16 base fit mitengo mpaka 15 m'malo mmodzi pambuyo kuti ali kunyamula.

N’chifukwa chiyani pa digito iliyonse ya hex ndi yofanana ndi digito zinayi za binary?

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.

Kodi chida ichi chimagwira ntchito ndi mafoni otsika mtengo?

Amagwira ntchito pa ma int numbers ndipo ndi oyenera mpaka kumapeto kwa int numbers omwe amasungidwa mwatsatanetsatane (mwachitsanzo, 9 quadrillion, kapena 2⁵³). Pambuyo pa izi, ma strings a binary kapena hexadecimal omwe ali ndi nthawi yaitali kwambiri angalephere kukwaniritsa zosowa za digits zaposachedwapa.

❤️ Ubwenzi Calculator.Free? Share it

𝕏  X Facebook Reddit
API — kugwiritsa ntchito izi calculator kuchokera code

Kuti mudziwe zambiri, pitani ku www.json.org/json.html. Kuti mudziwe zambiri, pitani ku www.json.org/json.html. Chomweko chilichonse chimene mumasiya chimagwiritsa ntchito mfundo yoyamba yomweyi yomwe tsambali limagwiritsa ntchito; mfundo yosadziwika ndi 400, siyiyenera kukhala zero yosadziwika. Onani zonse API docs →

Chithunzi

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

Zimenezi ndi zowerengera zokhudzana ndi malangizo amtundu uliwonse, si zokhudzana ndi ndalama, zamoyo kapena zokhudzana ndi ndalama.