When 6.6 is squared, why is the output 43.559999…?
Multiplication of floating point numbers
1 Like
Hey Divij,
When using float, you can always specify the digit upto which you want a number to be displayed. If the number of digits not specified after point, the float value returns a default number of digits (which is 15, I think).
This IDE which I have created would give you a better understanding.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.