cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with * operation ??

Highlighted
Occasional Contributor

Problem with * operation ??

Hi all, I am using TestComplete 7 and i have such problem..

 look in this simple code, e.g.



b = 384.28

c = 123.5

Sum = c*b



Then, when i am running this script, and  looking their values -

  c*b =47458.58,  Sum = c*b ->true, BUT Sum =47458.58 -> FALSE  !!

Can u ask me why???  and when i am wrintting Sum =CCur(47458.58), it's return TRUE......, what does that mean?
2 REPLIES 2
Highlighted
Staff

RE: Problem with * operation ??

Hi,



Can you describe the problem in detail? What exact result do you expect except for the multiplication result?
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Contributor

RE: Problem with * operation ??

This article explains the problem and some possible solutions:

http://floating-point-gui.de/


New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors