| Binary Prefix | Value | Denary Prefix | Value |
|---|---|---|---|
| kibi | 2^10 or 1024 | kilo | 1000 |
| mebi / mibi | 2^20 | mega | 10^6 |
| Denary | 2's complement (8bit) |
|---|---|
| 0010 0011 | |
| -35 | |
| 71 | |
| 1010 0001 |
Use the result from above, calculate, in Binary Addition, 35-71
Those old classic rpg games may use 16-bit integer to store exp points
Overflow
In floating point number system, it is impossible to represents 0.1 in binary (Detail will be explained in A-Level)
In floating point number system, it is impossible to represents 0.1 in binary (Detail will be explained in A-Level)
Practice questions (s15/qp11/q1)
Objectives
| Bitmap | Vector |
|---|---|
| Stores color of each pixel | Stores instructions to construct the graphic |
| Size of the file ∝ Number of pixel and color depth |
Size of file ∝ Complexity of the graphics (i.e. not related to image dimension) |
| Enlarge will reduce quality | Enlarge will not affect quality |
| Common file types: jpg (lossy), png (lossless), gif, bmp, psd (photoshop) |
Common file types: ai (illustrator), svg (scalable vector graphics) |
| Usually good for photos | Usually good for graphics and illustrations |
Usually used in multimedia files
Sacrificing quality to gain better compression rate
Graphics: jpeg
Audio: MP3
Video: MP4
Usually used in file / data compression
Quality/content will retain
File: zip
Graphics: png, gif
Internet: HTTP (when transmit webpage/content)