Ցուցադրել ցուցակ

Անվանել թվերը եռակի, ութական, տասանորդական և վեցերորդական

Արդյունք —
Տեղաշարժ —

Տեղեկացնել արդյունքները տպելու ժամանակ։

Այս հաշվիչը ճի՞շտ պատասխան տվեց Ձեզ։

Ընդունել այս հաշվիչը

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.

Հաճախակի տրվող հարցեր

Ինչպե՞ս փոխակերպել տասներկուականը երկակի ։

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.

Ինչի՞ համար է օգտագործվում հիսունականը։

Հինգերորդական (հիմն 16) ՝ չորս հնարքային բիտերը մեկ թվի մեջ (0- 9, ապա A- F) ՝ բայթները գրելու կոմպակտ ձև։ Հինգերորդական 255- ը FF է։

Ինչու՞ է իմ հեռախոսահամարը փակվում։

Գրերը պետք է ճիշտ լինեն սկզբնական հիմքի համար, օրինակ միայն 0 և 1 եռանիշ համակարգում, կամ 0-9 և A-F վեցանիշ համակարգում։ Անհատական թվի սխալ օգտագործումը արդյունքը անորոշ է դարձնում։

Ի՞նչ են նշանակում A-ից F-ը վեցերորդական համակարգում։

Նրանք մեկական թվեր են 10-ից 15-ի համար: A-ն 10 է, B-ն 11 է, մինչև F-ը, որը 15 է: Սա թույլ է տալիս հիմքի 16-ին տեղավորել թվերը մինչև 15-ը մեկ տեղում, մինչև այն պետք է փոխանցվի:

Ինչու՞ է յուրաքանչյուր վեցերորդական թիվ հավասարվում չորս երկակի թիվերի։

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.

Կարո՞ղ է այս փոխակերպիչը կառավարել շատ մեծ թվերը։

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.

❤️ Սիրտ Calculator.Free? Կիսվել այնով

𝕏  X Facebook Reddit
API — օգտագործել այս հաշվիչը կոդից

Խնդրել այս հաշվիչը որպես ազատ JSON վերջնական կետը - ոչ մի կոճակ պահանջվում է. Առաջարկեք ներքևի դաշտի արժեքները որպես հարցման պարամետրեր կամ JSON. Ձեր բաց թողած ամեն ինչ օգտագործում է նույն լռելյայնը, որով այս էջը նախօրոք լրացված է։ Անհայտ պարամետրը 400 է, երբեք անձայն զրո։ Կարդալ ամբողջական API փաստաթղթերը →

Ավարտման կետ

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

Ընդհանուր ցուցանիշները միայն ընդհանուր ուղեցույցի համար են, ոչ ֆինանսական, բժշկական կամ հարկային խորհուրդներ։