Originally posted by rah
Yes, they're mathmatically the same, but to a programmer, you have to be careful because it may cause you problems since some programming languages deal with some of these issues differently. So I can say yes and sometimes NO.
example.
In SAS, (a statistical language) SAS WILL see .9999...(to as many as the max precision in the language) as equal to one and if you base triggers off the comparison, they will work just fine. But if you do .33333.... and compare it to 1/3, it will not consider them equal. (which was a common proof used in many examples here.) If I then multiplied it by 3, it did recognize it as 1. Hmmmm
Now granted the programs is not set to handle infinite precision.
So the final point is, yes, they're the same, but in THE REAL WORLD, you have to verify that the tools that you're using also believe this truth.
Computers can't be wrong
Yes, they're mathmatically the same, but to a programmer, you have to be careful because it may cause you problems since some programming languages deal with some of these issues differently. So I can say yes and sometimes NO.
example.
In SAS, (a statistical language) SAS WILL see .9999...(to as many as the max precision in the language) as equal to one and if you base triggers off the comparison, they will work just fine. But if you do .33333.... and compare it to 1/3, it will not consider them equal. (which was a common proof used in many examples here.) If I then multiplied it by 3, it did recognize it as 1. Hmmmm
Now granted the programs is not set to handle infinite precision.
So the final point is, yes, they're the same, but in THE REAL WORLD, you have to verify that the tools that you're using also believe this truth.
Computers can't be wrong
".9999...(to as many as the max precision in the language)"
is NOT .999...
it's .9999....9!
where the number of 9s depends on the precision of the language.
Same with .33..
You even mentionned the programs dont handle infinite precision which is what is the subject here.
So again, like many others in the thread, you are talking about different objects.
Comment