ቁጥር
ቁጥሮችን በሁለት-አቅጣጫዊ፣ አራት-አቅጣጫዊ፣ ዐሥር-አቅጣጫዊ እና ዐሥር-አቅጣጫዊ መካከል ይለውጡ
ውጤቶች እንደተጻፉ ይቀየራሉ
ስለዚህ መተግበሪያ
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 በ Hexadecimal ምን ማለት ነው?
እነርሱ ለ 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.
ይህ መለወጫ በጣም ትልቅ ቁጥሮችን ይይዛል?
በሙሉ ቁጥሮች ላይ ይሠራል እና ትክክለኛ ነው እስከ ርዝመት ትክክለኛ ቁጥሮች የተጠበቁ ናቸው (በ 9 ኳድሪሊዮን, ወይም 2⁵³). ከዛ በላይ, በጣም ረጅም бинаር ወይም hexadecimal ሐረግ በመጨረሻ ቁጥሮች ውስጥ ትክክለኛነት ሊጠፋ ይችላል.
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);
ውጤቶች ለታዳሚው መመሪያ ብቻ ናቸው፣ የገንዘብ፣ የሕክምና ወይም የክፍያ ምክር አይደሉም፡፡