How Computer Deals with Floating Point Numbers?
May 16, 2021
IEEE 754 is the standard which is used by computers to represent floating point numbers. It has 3 parts as shown below. This is how IEEE 754 guide floating point representation.
Let’s see by our selves how can we convert decimal floating point in to IEEE 754 representation.
I hope you will get a clear understand about the floating point round problem and reason for that. Let’s discuss what we can do to avoid this kind of problem in Java in my next article.
Stay Safe !!!
References: