Name: Abdul Wahib
Registration No: 04-3-1-006-2025
Department: DME
Subject: Application of information and
communication technology
Name: Abdul Wahib
Registration No: 04-3-1-006-2025
Department: DME
Subject: Application of information and
communication technology
Storing fractional number:
Computer doesnot store number the same way as the human does .
Especially fractional and decimal number like 0.1 , 3/5 etc.
How computer stores fractional number:
Computer stores in binary not in a decimal.
Computers use only 0 and 1 instead of 0-9.
Fraction are stored using a specific format called floating – point.
The common standard is IEEE 74.
How truncation errors occurred:
Truncation error:
A truncation error happens when computer can’t store the whole number
exactly so it cuts some part of it.
Why it occurred:
Computer stores only in binary.
While some decimal number never end in binary
The computer have limited space(bits) so it stops early and stores the
approximately result.
How irrational numbers are stored:
Irrational number are like π (pi) and √2.
They have infinite decimal places.
Computers approximate their result according to the IEEE 74.
The result is close but not exact.