ຕົວ​ແປ​ພື້ນຖານ​ຕົວ​ເລກ

ປ່ຽນ​ຕົວເລກ​ລະຫວ່າງ​ສອງ, ແປດ, ສິບ ແລະ ແປດສິບຫ້າ.

ຜົນ —
ການ​ປ່ຽນ​ —

ຜົນ​ການ​ຄົ້ນ​ຫາ​ຈະ​ຖືກ​ອັບເດດ​ເມື່ອ​ທ່ານ​ພິມ​ມັນ​ຂຶ້ນ​ມາ ។

ຕົວຄິດໄລ່ນີ້ໄດ້ໃຫ້ຄໍາຕອບທີ່ຖືກຕ້ອງກັບທ່ານບໍ?

ກ່ຽວ​ກັບ​ເຄື່ອງ​ຄິດໄລ່​ນີ້

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.

ລະບົບ hex ຖືກໃຊ້ເພື່ອຫຍັງ?

Hexadecimal (base 16) ຖົງສີ່ binary ບິດເຂົ້າໄປໃນຕົວເລກຫນຶ່ງ (0-9 ຫຼັງຈາກນັ້ນ A-F), ດັ່ງນັ້ນມັນເປັນວິທີທີ່ຫນາແຫນ້ນເພື່ອຂຽນບິດ. ຈໍານວນຮ້ອຍ 255 ແມ່ນ FF ໃນ hex.

ເຮັດ​ຫຍັງ​ຕົວເລກ​ຂອງ​ຂ້ອຍ​ຈຶ່ງ​ສະແດງ​ການ​ຢຸດ​ເຊົາ?

ຕົວເລກຕ້ອງມີຜົນຖືກຕ້ອງສຳລັບແຫຼ່ງຖານ — ຕົວຢ່າງ 0ແລະ 1 ໃນລະບົບສອງຕົວ, ຫຼື 0-9ແລະ A-F ໃນລະບົບຫົກຕົວ. ຕົວເລກທີ່ບໍ່ຖືກຕ້ອງ ເຮັດໃຫ້ຜົນໄດ້ຮັບບໍ່ຖືກກຳນົດ.

ຕົວອັກສອນ A ເຖິງ F ມີຄວາມໝາຍແນວໃດໃນລະບົບ hexadecimal?

ຕົວເລກ​ດຽວ​ສຳລັບ​ຄ່າ​ 10 ເຖິງ 15: A ແມ່ນ 10, B ແມ່ນ 11, ເຖິງ F ເຊິ່ງແມ່ນ 15. ຕົວເລກ​ນີ້​ຈະ​ຊ່ວຍໃຫ້​ຖານ 16 ເຂົ້າ​ກັບ​ຕົວເລກ​ທີ່​ສູງ​ເຖິງ 15 ກ່ອນ​ທີ່​ມັນ​ຈະ​ຖືກ​ນຳ​ໃຊ້​ໃນ​ການ​ຄິດໄລ່​ຕົວເລກ​ໄດ້.

ເຮັດ​ຫຍັງ​ຕົວເລກ hex ແຕ່ລະຕົວ ເທົ່າກັບ4ຕົວເລກ 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.

ຕົວປ່ຽນ​ນີ້​ສາມາດ​ຈັດການ​ກັບ​ຕົວເລກ​ທີ່​ໃຫຍ່​ໄດ້​ບໍ?

ມັນ​ເຮັດວຽກ​ກັບ​ຕົວເລກ​ເຕັມ ແລະ​ແມ່ນ​ຖືກຕ້ອງ​ຈົນ​ເຖິງ​ຂອບ​ເຂດ​ຕົວເລກ​ເຕັມ​ແມ່ນ​ເກັບ​ໄວ້​ຢ່າງ​ແນ່ນອນ (ປະມານ9quadrallion, ຫຼື 2⁵³). ນອກ​ຈາກ​ນັ້ນ, ສາຍ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​ດາວ​ໂຫຼດ​

❤️ ຮັກ 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);

ຜົນໄດ້ຮັບແມ່ນຄາດຄະເນສໍາລັບຄໍາແນະນໍາທົ່ວໄປເທົ່ານັ້ນ, ບໍ່ການເງິນ, ຄໍາແນະນໍາທາງການແພດຫຼືພາສີ.