JeanL
14 years agoContributor
Counting with doubles (fractions)
Hey,
I ran into this strange bug with TC 8.60.665.70 when counting with double values:
17.08-(17.10-0.02) = -3,5527136788005E-15
17.07-(17.09-0.02) = 0
They should both give 0, right?
Is this because computers can't process fractions correctly or is this bug in VBSCript, TestComplete or in my computer or even in my head? Am I missing something here?
I ran into this strange bug with TC 8.60.665.70 when counting with double values:
17.08-(17.10-0.02) = -3,5527136788005E-15
17.07-(17.09-0.02) = 0
They should both give 0, right?
Is this because computers can't process fractions correctly or is this bug in VBSCript, TestComplete or in my computer or even in my head? Am I missing something here?