I have a situation where ideally I'd like to use the statement:
if A = B then C
Unfortunately, A and B are the result of calculations so are often carried out to many decimal places and not exactly equal. However for my purposes they are.
Would it be better to try rounding A and B when they are created or can I create an if/then statement where C is the outcome if the values of A and B are within .01 (either positive or negative) of each other?
if A = B then C
Unfortunately, A and B are the result of calculations so are often carried out to many decimal places and not exactly equal. However for my purposes they are.
Would it be better to try rounding A and B when they are created or can I create an if/then statement where C is the outcome if the values of A and B are within .01 (either positive or negative) of each other?