Skaitļu bāzes pārveidotājs

Konvertēt ciparus starp bināru, astronomisku, decimāldaļu un hidrolīzi.

Rezultāts —
Pārvēršana —

Rezultāti atjaunināt, kā jūs tipa.

Vai šis kalkulators tev sniedza pareizo atbildi?

Par šo kalkulatoru

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.

Bieži uzdotie jautājumi

Kā es konvertēt decimāldaļu uz binārā?

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.

Kāpēc lieto hidrolīzi?

Sešpadsmitās bāzes (16. bāzes) pakas četri bināri biti vienā rakstzīmē (0–9 tad A–F), tāpēc tas ir kompakts veids, kā rakstīt baitus. Decimālskaitlis 255 ir FF heksā.

Kāpēc mans numurs rāda domuzīme?

Skaitļiem jābūt derīgiem avota bāzei, piemēram, 0 un 1 binārā formā vai 0–9 un A–F heksanā. Nederīgs cipars padara rezultātu nedefinētu.

Ko burti A līdz F nozīmē hidrauliski?

Tie ir viens cipars vērtībām 10 līdz 15: A ir 10, B ir 11, līdz F, kas ir 15. Tas ļauj bāzes 16 der skaitļus līdz 15 vienā vietā, pirms tam ir jānes.

Kāpēc katrs heksa cipars ir vienāds ar četriem bināriem cipariem?

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.

Vai šis pārveidotājs var rīkoties ar ļoti lieliem skaitļiem?

It works on whole numbers and is accurate up to the range integers are stored exactly (about 9 quadrillion, or 2⁵³). Beyond that, extremely long binary or hexadecimal strings may lose precision in their last digits.

❤️ Mīlestība Calculator.Free? Dalīties ar to

𝕏  X Facebook Reddit
API – izmantot šo kalkulatoru no koda

Sūtīt lauka vērtības zemāk kā vaicājumu parametrus vai JSON. Jebko, ko nelaižat, izmanto to pašu noklusēto šo lapu, ar kuru tiek aizpildīta nezināma parametra versija 400, nekad kluss nulles variants. Lasīt visus API dokumentus →

Mērķa punkts

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

Rezultāti ir aprēķini tikai par vispārējiem norādījumiem, nevis finanšu, medicīnas vai nodokļu konsultācijām.