1 / 5

Number Systems (Các hệ thống số)

Number Systems (Các hệ thống số). Hệ mười (Decimal system). - Dùng 10 số: 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 để biểu diễn. VD: 25, 367890 Một số ở hệ mười có thể được biểu diễn như sau: 2467 = 7*10 0 + 6*10 1 + 4*10 2 + 2*10 3. Hệ nhị phân (Binary system).

wyanet
Télécharger la présentation

Number Systems (Các hệ thống số)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Number Systems (Các hệ thống số)

  2. Hệ mười (Decimal system) • - Dùng 10 số: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 để biểu diễn. VD: 25, 367890 • Một số ở hệ mười có thể được biểu diễn như sau: • 2467 = 7*100 + 6*101 + 4*102 + 2*103 Hệ nhị phân (Binary system) • Dùng 2 số: 0 và 1 để biểu diễn. VD: 0101, 1111 • -Đổi từ hệ 2 sang hệ 10: • 1010 = 0*20 + 1*21 + 0*22 + 1*23 = 0 + 2 + 0 + 8 = 10 • -Đổi từ hệ 10 sang hệ 2:

  3. 18 2 18 = 10010 0 9 2 1 4 2 • Chia cho 2, lấy thương & dư số cho đến khi nào thương số bằng 0. • Kết quả là số dư viết theo chiều ngược lại. 2 2 0 1 2 0 1 0 • Biểu diễn số nhị phân trong máy tính: • Bit: lưu trữ 0 hoặc 1 • 1 Byte = 8 bits • 1 kilobyte (KB) = 210 bytes = 1024 bytes • 1 megabyte (MB) = 210 KBs • 1 gigabyte (GB) = 210 MBs • 1 tetrabyte (TB) = 210 GBs • 1 petabyte (PB) = 210 TBs • 1 exabyte (EB) = 210 PBs

  4. Độ lớn của 1 số nguyên dương Hệ mười sáu (Hexadecimal system) - Dùng 16 số: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F để biểu diễn. VD: 23BE9 - Mỗi chữ số của hệ 16 được biểu diễn bởi 4 bits. - Đổi từ hệ 16 sang hệ 10: 23BE9 = 9*160 + 14*161 + 11*162 + 3*163 + 2*164 = 146,409 -Đổi từ hệ 10 sang hệ 16:

  5. 16 2011 2011 = 7DB 11 125 16 7 13 16 • Chia cho 16, lấy thương & dư số cho đến khi nào thương số bằng 0. • Kết quả là số dư viết theo chiều ngược lại. 7 0

More Related