2.333333333333333 - 1.666666666666667 It appends 1 in the last, increasing one bit. How to resolve it.
In the answer its giving, 0.6666666....1, but it should be 0.66666....6
2.333333333333333 - 1.666666666666667 It appends 1 in the last, increasing one bit. How to resolve it.
In the answer its giving, 0.6666666....1, but it should be 0.66666....6
I am going to guess you meant.6666...7 but it should be .6666...6 if you plan on programming I would strongly recommend that you learn how software interacts with the hardware. When a computer stores memory it cannot save the same amount of positive numbers as negative numbers. The reason being that the computer uses somthing of the format like,
10000001111
For (this is in binary) negative numbers where the one in front indicates that it is negative while,
00000001111
is the positive version of the same number (the absolute value for all you math nerds). Seeing this you should realize that you can store more positive numbers than negative numbers, so you need to be careful with whatever type you are using. However since your question is not 100% clear I cannot guarantee this will 100% answer your question. Good luck...