Ka whakarerekētia te pūtake tau
Ka tahuri ngā tau i waenganui i te ā-rua, te tapawhā, te ira me te tekauira.
Ka whakahōutia ngā hua i te wā e tātuhi ana.
Mo tēnei tātaitai
number base converters are used to convert a number from binary to octal, from octal to decimal, from decimal to hexadecimal, and from hexadecimal to binary. The number base converters are used to convert a number from binary to octal, from octal to decimal, from decimal to hexadecimal, from hexadecimal to binary, from binary to octal, from octal to decimal, from octal to hexadecimal, from hexadecimal to hexadecimal, from hexadecimal to binary, from binary to hexWorkedWorked example: 255 11
Ko nga pātai e pā ana
He pēhea te tahuri i te ira ki te ā-rua?
Ka whakawehea anō e te 2 me te whakaako i ngā toenga mai i raro ki runga. Hei tauira, ko te 10 i roto i te ira ko te 1010 i roto i te taurua, ā, ko te 255 ko te 11.
He aha te whakamahinga o te whakawhāiti?
Ko te whakawhāiti (pūtake 16) e whā ngā kōpaka ā-rua ki roto i tētahi mati (0–9 kātahi anō A–F), nō reira he ara taumaha ki te tuhi i ngā wae. Ko te tau ira 255 ko FF i roto i te whakawhāiti.
He aha te take i whakaaturia ai e ahau he tau i te whakatūpā?
Me tika ngā mati mō te pūtake pūtake — hei tauira, 0 me te 1 anake i roto i te taumaha, 0–9 rānei me te A–F i roto i te whakawhāiti. Ko te mati tē tika ka kore e tautuhia te hua.
He aha te tikanga o ngā tuhipoka A ki te F i roto i te whakawhāiti?
Ko ēnei ngā mati kotahi mō ngā uara 10 ki te 15: ko A te 10, ko B te 11, tae atu ki te F he 15. Mā tēnei e taea ai te pūtake 16 te whakarite i ngā tau tae atu ki te 15 ki tētahi wāhi i mua i te hiahiatia kia mau.
He aha te ōritetanga o ia mati tekauira ki ngā mati ā-rua?
Nā te mea he ōrite te 16 ki te 2 ki te hiko whā, ko ia mati tekauira e taupoki ana i ngā kōwae e whā. Nā reira ko te kōwae 11 e whakarōpū ana ki te 1 1, ko FF — ka mahi tēnei tahuri pūtake tau i taua whakarōpūtanga mō koe.
Ka taea e tēnei tahuri te whakahaere i ngā tau tino nui?
Ka mahi i runga i ngā tau tōpū, ā, mārama ki te awhe o ngā tau tōpū e rokirokitia ana kia tika (tata ki te 9 quadrillion, 253 rānei). I tua atu i tēnei, ka ngaro te tika o ngā aho ā-rua, ā-whāiti rānei i ō rātou mati whakamutunga.
API — whakamahi tēnei tātaitai mai i te waehere
E kī ana tēnei tātaitai hei wāhi mutunga kore JSON - kāore he kī e hiahiatia ana. Ka tukuna ngā uara āpure i raro nei hei tohutoro pātai, JSON rānei. Ka pānui te papatono API katoa →
Whakamutunga
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);
Ko ngā hua he whakataunga mō te tohutohu ahuwhānui anake, ehara i te tohutohu moni, rongoā, tāke rānei.