Posted By

bjoernwilmsmannde on 05/08/10


Tagged

number Value compare difference absolute comparison


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.