Posted By

BjoernKW on 08/20/10


Tagged

omparison


Versions (?)

Comparing two values using the absolute value of their difference


 / Published in: Groovy
 

  1. if (Math.sqrt((firstValue - secondValue)**2) > thirdValue) {
  2. ...
  3. }

Report this snippet  

You need to login to post a comment.