Nomor titik tetap: Cukup dijelaskan dengan contoh
Apa yang disebut angka fixed-point sering muncul dalam ilmu komputer. Kami jelaskan kepada Anda apa yang ada di dalam tip praktis ini.
Nomor titik tetap - apa itu?
Sistem kontrol khusus harus memproses nilai dengan akurasi tertentu. Untuk ini mereka menggunakan apa yang disebut nomor titik tetap.
- Dengan nomor titik tetap, angka dengan jumlah digit tertentu ditampilkan. Namun, di sini posisi koma tetap.
- Nomor titik tetap dapat dipecah menjadi bit (n) untuk fraksi sebelum titik desimal dan (m) untuk fraksi setelah titik desimal.
- Namun, penting bahwa fraksi dalam sistem desimal dapat ditampilkan secara berkala dalam sistem ganda.
- Untuk angka negatif, komplemen keduanya juga digunakan di sini.
- Saat menghitung dengan angka titik tetap, Anda melanjutkan dengan cara yang persis sama dengan angka normal. Namun, koma juga harus tetap pada posisi yang sama dalam hal perhitungan tanda hubung. Saat mengalikan, semua angka harus memiliki jumlah tempat yang sama sebelum dan sesudah titik desimal.
Teka-teki matematika: dapatkah Anda memecahkan serangkaian angka ini?
Tip praktis berikutnya akan memberi tahu Anda cara mengkonversi huruf ASCII ke angka biner.