binary / hex / decimal መለወጫ

ቍጥርን በሁለት-ቁምፊዎች፣ አራት-ቁምፊዎች፣ ዐሥር-ቁምፊዎችና ዐሥር-ቁምፊዎች መካከል ይለውጡ

ዐስር —
ቢያንስ —
ሐክስ —
አራት —
የቢት ርዝመት —

ውጤቶች እንደተጻፉ ይቀየራሉ

ይህ መቁጠሪያ ትክክለኛ መልስ ሰጥቶሃል?

ስለዚህ መተግበሪያ

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.

የሚጠየቁ ጥያቄዎች

ዐሥርኛን እንዴት ወደ ዐሥርኛ ዐሥርኛ መለወጥ እችላለሁ?

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.

ሐምሳኛን በቁጥጥር ላይ ለምን ይጠቀማሉ?

ሐክሳድ ቁጥር ሁሉ በጥሩ ሁኔታ አራት ቢያይሪ ቢትs ወደ ሚያሳይ, ስለዚህ ሐክሳድ ነው compact, readable መንገድ ለመጻፍ ባይቴ ዋጋዎች እና የማስታወሻ አድራሻዎች - 0xFF ሁሉ አንድ ባይቴ ነው.

0x, 0b ወይም 0o ቀደምት ፊደላትን የያዙ ቁጥሮችን ማስገባት እችላለሁን?

አዎ. የቀድሞው 0x (hex), 0b (binary) ወይም 0o (octal) ቀደምት ቁጥር በራስ-ሰር ይወጣል፣ ስለዚህ ዋጋዎችን ከኮድ በቀጥታ ማስቀመጥ ይችላሉ። የገባህበት መሠረት የምትመርጠው የምትገባባቸውን ቁጥሮች የሚጣጣም መሆኑን ያረጋግጡ።

የቢት ርዝመት ምን ይላል?

It is how many binary digits the value needs. Decimal 255 is 8 bits (one byte); 256 needs 9 bits. Bit length is useful for choosing data types and checking whether a value fits in a byte, 16-bit word or 32-bit register.

አራት-ቁጥር ለምን ይጠቀማል?

አክታል ቢትዎችን በሦስት ያሰባስባል እና በዩኒክስ ፋይል መብቶች (እንደ 755 ወይም 644) እና በሌሎች የቀድሞ ስርዓቶች ውስጥ ይታይበታል። አክታል ቁጥር ሁሉ ወደ ሦስት ቢያንስ ቢትዎች ይለወጣል፣ ሐምሳኛ ቁጥር ሁሉ ወደ አራት ይለወጣል

ለምን "ለዚህ መሰረታዊ ብዛት የማይመች" ማግኘት ቻልኩ?

የተቀመጠው ቁጥር በምርጡት መሠረት ውስጥ አይፈቀድም - ለምሳሌ፦ 0 እና 1 ብቻ የሚፈቀዱበት የሁለት-ቁጥር ቁጥር 8 ወይም F. የመግባት መሠረትን ዋጋዎን እንዲያገናኝ ይለውጡ ወይም ከርቀት ውጭ ያለውን ቁጥር ያስተካክሉ።

❤️ ፍቅር Calculator.Free? ላክ

API — ይህ መቁጠሪያን ከኮድ ይጠቀሙ

ይህ መቁጠሪያን እንደ ነጻ JSON መጨረሻ ነጥብ ጥሪ - ቁልፍ ያስፈልጋል. የሜዳውን ዋጋዎች በታች እንደ ጥያቄ პარაሜትር ወይም JSON ላኩ ማንኛውም ነገር ያላስቀመጥክበት ተመሳሳይ መነሻን ይጠቀማል ይህ ገጽ በመጀመሪያ የተሞላ ነው; ያልታወቀ ፓራሜትር 400 ነው, ሁልጊዜም የደበቅ ነጥብ አይደለም. የሙሉን የAPI ሰነዶች አንብብ →

መጨረሻ

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

ውጤቶች ለታዳሚው መመሪያ ብቻ ናቸው፣ የገንዘብ፣ የሕክምና ወይም የክፍያ ምክር አይደሉም፡፡