Qhov txawv ntawm Binary thiab Decimal

Qhov txawv ntawm Binary thiab Decimal
Qhov txawv ntawm Binary thiab Decimal

Video: Qhov txawv ntawm Binary thiab Decimal

Video: Qhov txawv ntawm Binary thiab Decimal
Video: Teb chaws Suav thiab USA coj los sib piv leej twg heev dua ? China compare to US (Hmong version) 2024, Lub Xya hli ntuj
Anonim

Binary vs Decimal

Ib tus lej yog lej lej. Peb paub cov lej hauv peb lub neej tiag tiag los ntawm cov cim. Ib qho kev sau ntawm cov cim cuam tshuam nrog cov txheej txheem yog hu ua "Number system" lossis "Numeral System." Cov cim lej manipulate yuav luag tag nrho lub ntiaj teb ntawm Kev Ua lej. Muaj ntau lub tshuab lej hauv ntiaj teb. Tus lej systems pib los ntawm peb cov kev paub hauv ntiaj teb tiag. Piv txwv li, kaum tus ntiv tes ntawm peb txhais tes cuam tshuam rau hauv kev xav txog tus lej uas muaj kaum lub cim. Qhov no yog qhov hu ua decimal number system. Ib yam li ntawd, peb lub duality hauv kev nkag siab zoo li nyob-tuag, yog-tsis yog, on-off, sab laug-txoj cai, thiab kaw-qhib pib ntawm binary tooj system nrog ob lub cim. Kuj tseem muaj lwm cov lej xws li octal thiab hexadecimal los piav txog lub ntiaj teb. Khoos phib tawj yog lub tshuab zoo kawg nkaus uas tau tswj hwm los ntawm ntau lub tshuab xov tooj.

Tus lej system siv hauv kev ua lej niaj hnub no yog hu ua tus lej xov tooj. Hauv lub tswv yim no, txhua tus lej hauv tus lej muaj tus nqi cuam tshuam uas nyob ntawm nws txoj haujlwm hauv tus lej. Tus naj npawb ntawm cov cim sib txawv siv los txheeb xyuas tus lej system hu ua lub hauv paus. Lub hauv paus yog ib txoj hauv kev zoo nkauj los txhais lub tswvyim ntawm qhov chaw muaj nqis. Hauv qhov kev nkag siab no, txhua qhov chaw tus nqi tuaj yeem sawv cev ua lub zog rau lub hauv paus.

Tus lej lej suav nrog kaum lub cim (tus lej): 0, 1, 2, 3, 4, 5, 6, 7, 8 thiab 9. Yog li ntawd, txhua tus lej uas sawv cev los ntawm tus lej no suav nrog ib lossis ntau dua saum toj no kaum lub cim. Piv txwv li, 452 yog tus lej sau los ntawm tus lej lej. Raws li tus lej sawv cev, tus lej 4, 5 thiab 2 tsis muaj qhov tseem ceeb ntawm tus lej. Hauv cov lej lej, qhov chaw qhov tseem ceeb yog (los ntawm sab xis mus rau sab laug) muab los ntawm 10 0, 101, 102, thiab lwm yam. Lawv raug nyeem raws li 1 qhov chaw, 10 qhov chaw thiab lwm yam, los ntawm sab xis mus rau sab laug.

Piv txwv li, nyob rau hauv tus lej 385, 5 yog nyob rau hauv 1 qhov chaw, 8 nyob rau hauv 10 qhov chaw, thiab 3 nyob rau hauv 100 qhov chaw. Yog li ntawd, siv lub tswv yim ntawm lub hauv paus peb denote 385 raws li cov ntsiab lus (3 × 10 2) + (8 × 10 1) + (5 × 100).

Tus lej binary siv ob lub cim; 0 thiab 1 los sawv cev rau ib tus lej. Yog li ntawd, nws yog ib tug lej system nrog lub hauv paus 2, thiab muab ib tug txheej ntawm qhov chaw qhov tseem ceeb raws li ib tug (2 0), ob (2 1), plaub (22), thiab lwm yam. Piv txwv li, 1011012 yog tus lej binary. Subscript 2 nyob rau hauv tus lej no sawv cev yog lub hauv paus 2 ntawm tus lej no.

Xav txog tus lej 1011012. Qhov no sawv cev rau (1×2 5) + (0×2 4) + (1 × 2 3) + (1×22) + (0×21) + (1×20)=los yog 1 × 32 + 0 × 16 + 1 × 8 + 1 × 4 + 0 × 2 + 1 × 1 los yog 45.

Binary tooj system yog siv dav hauv lub ntiaj teb lub computer. Cov khoos phis tawj siv cov lej binary los tswj thiab khaws cov ntaub ntawv. Tag nrho cov kev ua lej: sib ntxiv, rho tawm, sib faib thiab faib yog siv tau rau hauv cov lej lej thiab lej binary.

Dab tsi yog qhov txawv ntawm ?

¤ Tus lej lej siv 10 tus lej (0, 1…9) los sawv cev rau tus lej, thaum tus lej binary siv 2 tus lej (0 thiab 1).

¤ Tus lej siv hauv tus lej lej yog kaum, thaum tus lej binary siv lub hauv paus ob.

Pom zoo: