ຕົວ​ບວກ​ສອງ / ຕົວ​ຮ້ອຍ​ຫົກ / ຕົວ​ບວກ​ດັດຊະນີ

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

ຕົວເລກ​ຮ້ອຍ —
ສອງ​ —
ຕົວ​ເລກ​ຫົກ​ສິບ —
ແປດ —
ຄວາມຍາວ​ប៊ីត —

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

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

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

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.

ເຮັດ​ຫຍັງ​ຈຶ່ງ​ໃຊ້​ລະບົບ​ຮັກ​ສິບ​ໃນ​ການ​ຄິດ​ໄລ່?

ຕົວເລກ hex ແຕ່ລະຕົວ ຖືກວາງແຜນໃຫ້ເປັນ 4- bit binary ຢ່າງແທ້ຈິງ, ສະນັ້ນ hex ແມ່ນວິທີການອ່ານທີ່ງ່າຍດາຍ, ງ່າຍຕໍ່ການອ່ານເພື່ອຂຽນຄ່າຂອງໄບຕ໌ແລະທີ່ຢູ່ຂອງຄວາມ ຈຳ - 0xFF ແມ່ນໄບຕ໌ດຽວຂອງທຸກຄົນ.

ຂ້ອຍ​ສາມາດ​ໃສ່​ຕົວເລກ​ດ້ວຍ​ຕົວ​ກ່ອນ 0x, 0b ຫຼື 0o ໄດ້​ບໍ?

ຖືກ. ຕົວແທນ 0x (hex), 0b (binary) ຫຼື 0o (octal) ກ່ອນ​ໜ້າ​ຈະ​ຖືກ​ລົບ​ອອກ​ໂດຍ​ອັດຕະໂນມັດ, ສະນັ້ນ​ທ່ານ​ສາມາດ​ບີບອັດ​ຄ່າ​ໂດຍ​ກົງ​ຈາກ​ໂປຣແກຣມ​ໄດ້. ພຽງແຕ່​ຮັບປະກັນ​ວ່າ​ພື້ນຖານ​ການ​ເຂົ້າ​ເຖິງ​ທີ່​ທ່ານ​ໄດ້​ເລືອກ​ແມ່ນ​ກົງ​ກັບ​ຕົວເລກ​ທີ່​ທ່ານ​ໄດ້​ໃສ່​ເຂົ້າ​ມາ.

ຄວາມຍາວຂອງ bit ສະແດງໃຫ້ເຫັນຫຍັງ?

ຕົວເລກສອງຕົວທີ່ຄ່າຕ້ອງການ. ຕົວເລກ 255 ເປັນ 8 ບິດ (ບິດໜຶ່ງ); 256 ຕ້ອງການ9ບິດ. ຄວາມຍາວຂອງບິດແມ່ນມີປະໂຫຍດສຳລັບການເລືອກປະເພດຂໍ້ມູນ ແລະ ກວດເບິ່ງວ່າຄ່າຈະເໝາະສົມກັບບິດ, ຄໍາ 16- ບິດ ຫຼື ບັນທຶກ 32- ບິດ.

ຕົວອັກສອນ octal ຖືກໃຊ້ເພື່ອຫຍັງ?

ກຸ່ມ Octal ປະກອບດ້ວຍ ສາມ​ບິດ ແລະ ສະແດງ​ອອກ​ໂດຍ​ສະເພາະ​ໃນ​ການ​ອະນຸຍາດ​ຂອງ​ໄຟລ໌ Unix (ເຊັ່ນ 755 ຫຼື 644) ແລະ ລະບົບ​ເກົ່າ​ບາງ​ຢ່າງ. ຕົວເລກ octal ແຕ່ລະອັນ​ວາງ​ແຜນ​ໃຫ້​ເປັນ​ສາມ​ບິດ​ໄບນາຣີ​ຢ່າງ​ແທ້ຈິງ, ວິທີ​ທີ່​ຕົວເລກ hex ແຕ່ລະອັນ​ວາງ​ແຜນ​ໃຫ້​ເປັນ​ສີ່.

ເຮັດ​ຫຍັງ​ຂ້ອຍ​ໄດ້​ຮັບ "ຕົວເລກ​ທີ່ບໍ່​ຖືກຕ້ອງ​ສໍາລັບ​ຖານ​ຂໍ້ມູນ​ນີ້"?

ຕົວເລກ​ທີ່​ທ່ານ​ໄດ້​ໃສ່​ບໍ່​ຖືກ​ອະນຸຍາດ​ໃຫ້​ໃຊ້​ໃນ​ຖານ​ທີ່​ໄດ້​ເລືອກ - ຕົວຢ່າງ​ຄື​ຕົວອັກສອນ F ຫຼື ຕົວເລກ 8 ໃນ​ຕົວເລກ​ສອງ​ຕົວ, ເຊິ່ງ​ອະນຸຍາດ​ໃຫ້​ໃຊ້​ໄດ້​ແຕ່0ແລະ 1. ປ່ຽນ​ຖານ​ການ​ເຂົ້າ​ເຖິງ​ໃຫ້​ກົງ​ກັບ​ຄ່າ​ຂອງທ່ານ ຫຼື ແກ້ໄຂ​ຕົວເລກ​ທີ່​ບໍ່​ຢູ່​ໃນ​ຂອບ​ເຂດ.

❤️ ຮັກ Calculator.Free? ແບ່ງປັນ

𝕏  X Facebook Reddit
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);

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