Forum Discussion

p_mariet's avatar
p_mariet
Occasional Contributor
11 years ago
Solved

Testcomplete subsctraction problem VBScript

Hello, I'm having a hard time with a simple substraction in Testcomplete (I know that sounds a bit stupid...). Here is an example: Dim one, two   one = (79.10 - 67...
  • karkadil's avatar
    11 years ago
    Working with float types is always a bottleneck in scripting language.



    I am not an expert in this and can't explain why exactly this example works like this, but I've found a solution for you




    Dim one, two


     


    one = Round(79.10 - 67.80, 2)


    two = Round(11.30, 2)