Campbell Ritchie wrote:Yes, that is the problem. It should be possible to show that all finite sequences of multiple 9s after the decimal point do not equal 1.0
it should be simpler than that.
1 - 0.<x nines> = 0.<(x-1) zeros>1
I think i have that right...
so if there is a non-zero difference between two number, they are not the same.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors