I-Hexadecimal iyisistimu yezinombolo eziyisisekelo ezingu-16. Izinombolo ezisuka ku-0 kuye ku-9 zimelelwa izinhlamvu ezihambisanayo (A kuya ku-F). Izinombolo ezisuka ku-10 kuye ku-15 zimelelwa ngamadijithi amabili, njenge-1234 noma i-ABCD. Izinombolo ze-hexadecimal zeqa le mikhawulo, zisebenzisa izinhlamvu ezine ukumela izinombolo ukusuka ku-16 ukuya ku-255.
Isexwayiso
Ngenxa yemikhawulo yesiphequluli, ubude bedatha yakho ngeke bube ngaphezu kwezinhlamvu ezingu-1950 uma ungathanda ukusebenzisa le ndlela ngokuqondile. Uma kungenjalo, sicela ucabange ukusebenzisa i-API yethu.
Ukufaka ikhodi umbhalo
Ungavula isiphequluli bese ulayisha i-URL ngepharamitha efana nale:
https://tooly.win/text-hex-converter.html?input=umbhalo wakho ongenalutho ongathanda ukuwufaka ikhodi
Uma ungathanda ukubhala ngekhodi okuqukethwe kwe-URL yangaphandle, ungase uvule isiphequluli futhi ulayishe i-URL efana nale:
https://tooly.win/text-hex-converter.html?input=URL&content=fetch
Amanye amapharamitha wokubhala ngekhodi idatha yakho:
space=true
uma ungathanda ukuthola idatha efakwe ikhodi enezikhala phakathi kwamabhayithiprepend=true
uma ungathanda ukuthola umphumela olungiselele yonke ibhayithi ngo-0x
Ukuqopha umbhalo ofakwe ikhodi
Ungavula isiphequluli bese ulayisha i-URL ngepharamitha efana nale:
https://tooly.win/text-hex-converter.html?code=idatha yakho efakwe ikhodi
Uma ungathanda ukukhipha ikhodi i-URL yangaphandle, ungase uvule isiphequluli bese ulayisha i-URL kanje:
https://tooly.win/text-hex-converter.html?code=URL
Isexwayiso
Leli thuluzi okwamanje lamukela indlela POST nge-API kuphela, uma ungathanda ukusebenzisa indlela ethi GET, sicela ucabangele ukusebenzisa Ukusetshenziswa Okuqondile.
Iphoyinti lokugcina
https://tooly.win/api/text-hex-converter/
Ukufaka ikhodi umbhalo
Iphoyinti lokugcina: POST https://tooly.win/api/text-hex-converter/
string
URL / umbhalo wakho ongenalutho ongathanda ukuwufaka ikhodi
string
fetch
uma okokufaka kwakho kuyi-URL futhi ungathanda ukubhala ngekhodi okuqukethwe kwayo. Ngaphandle kwale pharamitha, ithuluzi lethu lizocubungula i-URL yakho njengombhalo
boolean
true
uma ungathanda ukuthola idatha efakwe ikhodi enezikhala phakathi kwamabhayithi
boolean
true
uma ungathanda ukuthola umphumela olungiselele yonke ibhayithi ngo-0x
boolean
true
uma isicelo sakho silungile
string
umphumela wesicelo sakho uma lingekho iphutha
string
iphutha lomlayezo uma kukhona iphutha
curl
https://tooly.win/api/text-hex-converter/
-X POST -H 'Content-Type: application/json'
--data '{"input":"umbhalo wakho ongenalutho ongathanda ukuwufaka ikhodi","space":true,"prepend":true}'
{
"status": true,
"result": "0x75 0x6d 0x62 0x68 0x61 0x6c 0x6f 0x20 0x77 0x61 0x6b 0x68 0x6f 0x20 0x6f 0x6e 0x67 0x65 0x6e 0x61 0x6c 0x75 0x74 0x68 0x6f 0x20 0x6f 0x6e 0x67 0x61 0x74 0x68 0x61 0x6e 0x64 0x61 0x20 0x75 0x6b 0x75 0x77 0x75 0x66 0x61 0x6b 0x61 0x20 0x69 0x6b 0x68 0x6f 0x64 0x69",
"messsage": "",
}
Ukuqopha umbhalo ofakwe ikhodi
Iphoyinti lokugcina: POST https://tooly.win/api/text-hex-converter/
string
URL / idatha yakho efakwe ikhodi
boolean
true
uma isicelo sakho silungile
string
umphumela wesicelo sakho uma lingekho iphutha
string
iphutha lomlayezo uma kukhona iphutha
curl
https://tooly.win/api/text-hex-converter/
-X POST -H 'Content-Type: application/json'
--data '{"code":"69 64 61 74 68 61 20 79 61 6b 68 6f 20 65 66 61 6b 77 65 20 69 6b 68 6f 64 69"}'
{
"status": true,
"result": "idatha yakho efakwe ikhodi",
"messsage": "",
}
I-Hexadecimal iyindlela yokumela idatha kanambambili ngendlela efundeka umuntu. Yasungulwa ngekhulu le-19 ukuze amakhompiyutha agcine inani elikhulu lolwazi.
Ungasebenzisa i-hexadecimal ukuze uguqule phakathi kwamanani wedesimali namanani kanambambili. Isibonelo, ukuguqula u-10011011001010 kube i-hexadecimal kungaholela ku-0x4F. Lokhu kusho ukuthi inani 4F limele inombolo kanambambili 100110110010110.
Kuzibalo nesayensi yekhompiyutha, i-hexadecimal (nayo i-base 16, noma i-hex) iwuhlelo lwenombolo yokuma olune-radix, noma isisekelo, sika-16. Isebenzisa izimpawu ezihlukene eziyishumi nesithupha, ngokuvamile izimpawu ezithi 0–9 ukuze zimelele amanani aziro kuye kweyisishiyagalolunye, kanye no-A, B, C, D, E, F (noma okunye a–f) ukumela amanani ayishumi kuya kweyishumi nanhlanu. Isibonelo, inombolo ye-hexadecimal 2AF3 ilingana, ngedesimali, no (2 × 163) + (10 × 162) + (15 × 161) + (3 × 160) noma 10,995.
Idijithi ngayinye ye-hexadecimal imelela amadijithi kanambambili amane (amabhithi) (okubuye abizwe ngokuthi "i-nibble"), futhi ukusetshenziswa okuyinhloko kwe-hexadecimal notation kuwumelela komuntu amanani amakhodi kanambambili kukhompyutha naku-electronics wedijithali. Ngokwesibonelo, amanani ebhayithi angasukela ku-0 kuye ku-255 (idesimali) kodwa angase amelelwe kalula njengamadijithi angu-hexadecimal kububanzi 00 ukuya ku-FF. I-Hexadecimal iphinde isetshenziselwe ukumela amakheli enkumbulo yekhompyutha.
I-Hex isifinyezo se-Hexadecimal, esisekelwe kusakhiwo se-base -16 futhi sisetshenziselwa ukwenza lula ukuthi imiyalelo kumakhompyutha imelelwa kanjani. Lolu hlelo lwezinombolo zezimpawu eziyi-16 lwakhiwe njengendlela yokuvimbela inombolo kanambambili engu-8-bit, ngakho-ke idatha ingafakwa ngekhodi kumakhompyutha kalula. Ingaphrintwa futhi ithayiphe kusetshenziswa amadijithi amabili ahlukene e-hex ngedijithi ngayinye ye-hex ebonisa i-nibble noma ifomethi yamabhithi angu-4.
Lolu hlelo lwezinombolo lusebenzisa izimpawu eziyi-16 ezimelwe kububanzi obusuka ku-0-9 noma AF. U-0–9 umele izinombolo ezifika kweyisishiyagalolunye kanti i-AF imelwe izinombolo ezingu-10–15. Uma kuqhathaniswa nezinye izinhlobo ezintathu zezinhlelo zezinombolo, uhlelo lwezinombolo ze-hexadecimal luthathwa njengolusebenza kahle kakhulu.
Isistimu ye-hexadecimal iyinombolo eyisisekelo engu-16, kuyilapho isistimu yedesimali iyinothi eyisisekelo yezinombolo ezingu-10. Ngamanye amazwi, uhlelo lwe-hexadecimal lusebenzisa izimpawu eziyi-16 ukumela izinombolo, kanti uhlelo lwedesimali lusebenzisa izimpawu eziyi-10. Lokhu kunwetshwa kuvumela futhi amadijithi aphezulu wokuminyana-hexadecimal angamela amanani aphindwe kabili kunamadijithi wedesimali.
Izinombolo ze-hexadecimal zakhiwe ngamadijithi ayi-16 esikhundleni sika-10 enombolweni yedesimali. Ukuhleleka kwalezi zinombolo kuqala ngemva kuka-F (noma 15 ngedesimali), kuyilapho kungangeni kumadesimali. Bheka ithebula elingezansi ukuze ubone ukuthi ziqhathaniswa kanjani!
Lapho uguqula i-hexadecimal ibe idesimali, isinyathelo sokuqala ukuhlukanisa inombolo ye-hex ngo-16. Lokhu kuzokunikeza inombolo yesisekelo. Isinyathelo sesibili siwukuhlukanisa idijithi ngayinye yenombolo ye-hex ngo-16 bese ubhala phansi imiphumela. Ekugcineni, hlanganisa zonke izinombolo ezisanda kubalwa.
Isibonelo, uma umuntu efuna ukuguqula u-9F7A abe yidesimali, bazoqale bahlukanise u-9F7A ngo-16 olingana no-6051. Bese behlukanisa idijithi ngayinye ka-6051 ngo-16 elingana no-381. Okokugcina, bazohlanganisa 381 + 381 + 381 okulingana 1144. Ngakho-ke, u-9F7A ngedesimali ulingana no-1144
Ukuguqula idesimali ibe i-hexadecimal kuyinqubo elula, futhi ingenziwa ngesibali noma isiguquli esiku-inthanethi. Ukuze uguqule inombolo, ihlukanise ngo-16 bese uthatha okusele. Lokhu okusele kuzobe sekuhambisana nedijithi ye-hexadecimal. Isibonelo, uma unenombolo yedesimali engu-234, yehlukanise ngo-16 bese uthatha esele: 234/16 = 14 R 2. Ngakho-ke, ku-hexadecimal notation, le nombolo izobhalwa ngokuthi “E2”.
Kunamathuluzi amaningi atholakalayo ku-inthanethi angasiza ekuguquleni phakathi kwezinombolo zedesimali kanye ne-hexadecimal. Ukwengeza, ama-calculator amaningi anomsebenzi owakhelwe ngaphakathi ozokuvumela ukuthi wenze lokhu kuguqulwa kalula kakhulu. Ngokuchofoza okumbalwa nje kwegundane noma ukuthepha kukhibhodi, uzokwazi ukushintsha noma yiliphi inani ledesimali lilingane ne-hexadecimal yalo ehambisanayo!
I-hexadecimal, noma i-base-16, isistimu yaklanywa ukulingisa ezinye izici ezifanayo nesistimu yedesimali. Ngamanye amazwi, yadalelwa ukwenza izinto zibe lula kithina bantu. Inombolo 423 inezinombolo eziyi-16 esikhundleni samadijithi ayi-10 atholakala ohlelweni lwedesimali. Lokhu kungenxa yokuthi i-hexadecimal isebenzisa isisekelo sezimpawu eziyi-16 esikhundleni sika-10. Ngemva kuka-F, i-oda liqala futhi ngo-0 njalo njalo njalonjalo size sifike ku-15 okuphawulwe ngokuthi F.
Umbhalo wekhodi we-hexadecimal kunciphisa inani lamadijithi nge-factory yesishiyagalombili uma kuqhathaniswa nesistimu yedesimali. Ukwengeza, izinombolo ze-hexadecimal zinomthamo wolwazi ophindwe kabili kunezinombolo zamadesimali. Ngakho-ke, kungani kufanele uzihluphe ngokufunda lesi sikimu sezinombolo esincane esijabulisayo? Ngoba kungenza ukuphila kwakho kube lula! Uma usebenza ngamasistimu edijithali noma ukudluliswa kwedatha, ukusebenzisa i-hex kuzokongela isikhathi namandla lapho ubhala imilayezo eyimfihlo noma ukusakazwa kwedatha.
Uma kuziwa ekubhalweni kwekhodi kanambambili, i-Hexadecimal isebenza kahle kakhulu ngoba yehlisa amadijithi ayi-8 kuya ku-2. Ukwengeza, i-Hex inikeza izinga elikhulu lokuminyana kolwazi nokunemba okuphezulu kwezinombolo kunezimbambambili. Lokhu kungenxa yokuthi i-Hex isebenzisa izimpawu eziyi-16 esikhundleni sezibili nje ezifana kanambambili. Ngenxa yalokhu kusebenza kahle okukhulayo, i-Hexadecimal ivamise ukusetshenziswa lapho kufakwa amakhodi kanambambili ku-computing kanye ne-digital electronics kanye nasezinhlelweni zesayensi yekhompyutha.
Ngaphezu kwalokho, i-Hexadecimal ithatha isikhala esincane kunedesimali. Ngamadijithi amabili kuphela esikhundleni samadijithi kanambambili ayi-8, izinombolo ze-Hex zimele izinombolo ezinkulu ngokufingqiwe. Lokhu kungaba usizo kakhulu uma usebenza nezinhlelo zekhompiyutha, njengoba mancane amathuba okuba amaphutha uma uthayipha amakhodi e-hex uma kuqhathaniswa namakhodi wedesimali anamaphuzu amaningi wedesimali kuyo yonke indawo!
Inombolo ye-hexadecimal iyinombolo esebenzisa amadijithi ayi-16 esikhundleni samadijithi ayi-10 esiwasebenzisa ohlelweni lwedesimali. Le sistimu yezinombolo ibizwa nge-base-16, futhi isisiza ukuthi silingise izici zesistimu yethu yedesimali ejwayelekile. Ku-hexadecimal, idijithi ngayinye imelela amandla angu-16. Izinombolo 0 kuya ku-9 zimelela amandla ka-1 kuya ku-10, kuyilapho u-A ukuya ku-F amelela amandla ka-11 kuya ku-15.
Njengakudesimali, ngemva kokusetshenziswa kwezimpawu eziyi-16 ku-Hexadecimal, ukuhleleka kwezinombolo kuqala futhi kokuthi ziro. Ngakho-ke, i-hexadecimal 10 ilingana nedesimali 16, futhi i-hexadecimal 11 ilingana nedesimali 17. Futhi njalo!
Isistimu yedesimali iqala ngo-10 futhi ikhuphuke iye ku-15. Lokhu kusho ukuthi ububanzi bamanani obungamelwa inombolo yedesimali busuka ku-0-9, bulandelwe yi-AF (10-15).
Uma kukhulunywa ngokuqopha i-Hexadecimal, kunezinto ezimbalwa okudingeka uzazi. Okokuqala, njengesistimu yedesimali, isistimu ye-hexadecimal inezimpawu eziyi-10 (0-9) ezimele izinombolo. Nokho, ku-hexadecimal, lawa madijithi anamanani amakhulu ngokuphindwe kabili kunozakwabo ohlelweni lwedesimali. Ngakho, ngenkathi inombolo “10” imelelwa uphawu “A” ku-hexadecimal, izolingana no-“10” ohlelweni lwedesimali.
Ngokufanayo, ngemva kokufinyelela ku-9 ku-Hexadecimal (emelwe ngu-“F”), siqala ukubala futhi ku-10 (“10”). Le phethini iyaqhubeka size sifike ku-15 (“1F”), ngaleso sikhathi sisetha kabusha sibuyele ku-0 bese siqala ukubala futhi ngo-16 (“20”). Lokhu kungase kuzwakale kudida ekuqaleni, kodwa ngokuzijwayeza okuncane, kuzoba imvelo yesibili!
Okokugcina, njengaku-base 10 (uhlelo lwedesimali), inani lendawo ngayinye yenombolo ye-hexadecimal limelela amandla angu-16. Ngakho-ke isibonelo, uma besinenombolo engu-423004 egcinwe njengenani le-hexadecimal:
I-4 izomela i-400 (4 × 100), i-2 izomela i-20 (2 × 10), i-3 izomela u-3 (3 × 1), futhi i-0 izomela u-0 (0x0).
Lokhu ukubuka konke okuyisisekelo kokukhipha amakhodi izinombolo ze-Hexadecimal. Uma ufuna imininingwane enemininingwane eminingi, kunezinsiza eziningi ze-inthanethi ezingasiza!