Representasi Bilangan

Dinyatakan dengan sign, bilangan magnitude dan posisi titik radiks. Titik radiks memisahkan bilangan bulat dan pecahan. Penggunaan titik radiks berkaitan dengan jajaran bilangan yang dapat ditampung oleh komputer.

Representasi Fixed-point : titik radiks selalu pada posisi tetap.

Representasi Floating-point :

a = m x r e

r   = radiks, m = mantissa, e   = eksponen

Untuk  menyatakan  bilangan  yang  sangat  besar  atau sangat  kecil,   dengan  menggeser  titik  radiks  dan mengubah eksponen untuk mempertahankan nilainya.

ARITMATIKA FIXED POINT PENJUMLAHAN dan PENGURANGAN  dalam Desimal

5,67                  137,12

43,09 +               10,09 –

48,76                 127,03

PENJUMLAHAN dan PENGURANGAN dalam Basis X

(67)8 (1101)2 (A19)16

(35)8 +         (1001)2 +         (  53)16

(124)8 (10110)2 (9C6)16

ARITMATIKA FLOATING POINT

Penambahan  dan Pengurangan

0,63524 x 103

0,63215 x 103 +

1,26739 x 103 0,126739 x 104

 

0,11000 x 22 0,11000 x 23

0,10100 x 23 0,01010 x 23
0,01110 x 23

Perkalian

(0,253 x 102) x (0,124 x 103)

=  (0,253) x (0,124) x 102+3

=  0,031 x 105 0,31 x 104

Representasi Bilangan Positif dan Negatif pada bilangan BINER

1.  Label tanda konvensional : + dan –
Contoh : +4 dan -4

2.  Menggunakan posisi digit sebelah kiri (MSB) sebagai

sign digit (0 untuk positif dan 1 untuk negatif).

Contoh : Sign-Magnitude  +9 dalam  8 bit     =  00001001

Sign-Magnitude    -4 dalam    4 bit   =  1100

Magnitude dari bilangan positif dan negatif sama hanya berbeda pada sign digitnya/MSB.

3. Representasi Komplemen-1

Angka nol diubah menjadi satu dan satu menjadi nol.

Contoh : Dalam 8 bit

+12 = 00001100

-12  = 11110011

4.   Representasi Komplemen-2

Dengan representasi komplemen-1  ditambah 1. Contoh : Dalam 8 bit

-12   = 11111011  (Komplemen-1)
1  +

= 11111100  (Komplemen-2)

 

 

Share

10 thoughts on “Representasi Bilangan

  1. Excellent article and easy to understand explanation. How do I go about getting permission to post part of the article in my upcoming news letter? Giving proper credit to you the author and link to the site would not be a problem.

  2. Howdy, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam comments? If so how do you reduce it, any plugin or anything you can recommend? I get so much lately it’s driving me crazy so any support is very much appreciated.

  3. I’m not that much of a internet reader to be honest but your sites really nice, keep it up! I’ll go ahead and bookmark your site to come back down the road. All the best

  4. Fantastic site you have here but I was curious about if you knew of any forums that cover the same topics discussed in this article? I’d really like to be a part of online community where I can get advice from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Thanks!

  5. Excellent post but I was wanting to know if you could write a litte more on this topic? I’d be very thankful if you could elaborate a little bit more. Appreciate it!

  6. Hello there! Do you use Twitter? I’d like to follow you if that would be okay. I’m absolutely enjoying your blog and look forward to new updates.

  7. Really impressed with the website, faithully, Dr. Jones,

    Dental Health and Wellness Boston
    31 State Street, 7th Floor, Boston, MA 02109
    (617) 910-4780

Leave a Reply

Your email address will not be published. Required fields are marked *