අංක මූල පරිවර්තකය
ද්විමය, octal, දශම හා hexadecimal අතර අංක පරිවර්තනය කරන්න.
ඔබ ටයිප් ලෙස ප්රතිඵල යාවත්කාලීන.
මෙම කැල්ක්යුලේටරය ගැන
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.
hexadecimal සඳහා භාවිතා කරන්නේ කුමක්ද?
Hexadecimal (අගයක් 16) එක් අංකයක් (0-9 පසුව A-F) බවට ද්විමය බිට් හතර ඇසුරුම්, ඒ නිසා එය බයිට් ලියන්න සංයුක්ත ක්රමයක්. දශම සංඛ්යාව 255 hex FF වේ.
ඇයි මගේ අංකය ඩේෂ් එකක් දන්නේ නැත්තේ?
අංක මූලාශ්රය පදනම සඳහා වලංගු විය යුතුය - උදාහරණයක් ලෙස ද්විමය පමණක්0සහ 1, හෝ 0-9 හා A-F hex. වලංගු අංක ප්රතිඵලය undefined කරයි.
A සිට F දක්වා අකුරු hexadecimal දී අදහස් කරන්නේ කුමක්ද?
ඒ 10, B 11, වන එෆ් දක්වා: ඔවුන් 10 15 හරහා අගයන් සඳහා තනි අංක ගණිතය වේ. මෙම පදනම 16 එය රැගෙන යාමට පෙර එක් ස්ථානයකට 15 දක්වා අංක ගැලපෙන ඉඩ දෙයි.
ඇයි සෑම hex අංකය ද්විමය අංක හතර සමාන කරන්නේ?
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 quadrillion ගැන, හෝ 2⁵³). ඒ ඉක්මවා, අතිශය දිගු ද්විමය හෝ hexadecimal strings ඔවුන්ගේ අවසන් අංක නිරවද්යතාව අහිමි විය හැක.
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);
ප්රතිඵල සාමාන්ය මග පෙන්වීම සඳහා පමණක් ඇස්තමේන්තු, මූල්ය, වෛද්ය හෝ බදු උපදෙස් නොවේ.