Sebelum itu, kita kena faham dulu apa itu aritmetik..secara ringkasnya, aritmetik adalah operasi untuk semua nombor integer, iaitu hasil tambah, hasil tolak, hasil darab, hasil bahagi dan operasi nilai lebih.
Selain itu, aritmetik juga sebagai titik apung nombor nyata, iaitu pembentangan dan operasi.
Untuk hasil tambah, kita menggunakan jalan kerja seperti ini:
*nilai tambah yang lebih akan dibawa ke sebelah (seperti yg d'tunjuk)..
Untuk nilai tolak, nilai negatif akan ditukar kepada positif m'nggunakan ' 2nd complement':
cth: 7-6 = 7 + (-6)
Berikut merupakan jalan-jalan kira bag hasil darab dan bahagi :
ZARIFAH BINTI HASHIM
B031210147
1BITM S1G2
Pengendali " Bitwise"
Pengendali Bitwise beroperasi pada bit operan atau operan. Jadual berikut memberikan senarai pengendali Bitwise.
Pengendali Bitwise beroperasi pada bit operan atau operan. Jadual berikut memberikan senarai pengendali Bitwise.
Introduction and concept
Every single data in a computer whether a numbers, words, of symbols are made up from numbers including the instruction to the computer which well known as machine language.
There are 3 types of number system in computer, that usually used by a programmer and a compute which are binary,decimal, and hexadecimal. The following tables show the type of numbering system :-
Every single data in a computer whether a numbers, words, of symbols are made up from numbers including the instruction to the computer which well known as machine language.
There are 3 types of number system in computer, that usually used by a programmer and a compute which are binary,decimal, and hexadecimal. The following tables show the type of numbering system :-
Table 1.0 Numbering System
Binary Number :-
- Used only 2 digit which are made up of 1 and 0 only.
- 1 byte consist of 8 bits.
- Every digit in binary number is called as bit. Every single bit position has it's own weight and value. The least significant bit (LSB) and Most significant bit (MSB) is depends on the size of binary number.
Table 1.1 LSB and MSB |
The LSB and MSB depends on their size of bit number.
Nur Azimah Daud ( B031210187 )
Decimal Number :-
- The most common used for numbering system.
- Used 10 digit number which are 1,2,3......9.
- Operations that can be done in this system is addition, subtraction, multiplication and division.
- The positive and negative valued is determined by its position .
- The value of the bits is determined by value of its exponent.
(e.g : 2^1 = 2 while 2^-1 = 0.5 )
Hexadecimal Number : -
- Hexadecimal number is widely used in programming and microcomputer operation.
- It uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and
A, B, C, D, E, F to represent value ten to 15.
- Weight for hexadecimal are derived from the power of the number
by : NORSAZILAH BINTI MUHAMMAD
IEEE Floating-Point Format
single:
8 bits single: 23 bits
double: 11 bits double:52 bits
- S: sign bit (0 > non - negative, 1> negative)
- Normalize significand: 1.0 ≤ |significand| < 2.0
- Always has a leading pre-binary point 1 bit,so no need to represent it explicitly (hidden bit)
- Exponent: excess representation:actual exponent + Bias
- Ensures exponent is unsigned
- Single:Bias = 127; Double:Bias = 1203
Archanaa Arunasalam
B031110428
No comments:
Post a Comment