there a correct way to compare floats in DM script? Using the == operator usually ends in rounding
Problem description:
Code:
there a correct way to compare floats in DM script? Using the == operator usually ends in rounding Problem description: |
if(abs(float1-float2)<0.01)
The above test would be true if the values are approximately equal within an error of one one hundredth.