near
Determine whether two values are roughly equal.
- Provided by: linuxcnc-uspace (Version: 1:2.9.4-2ubuntu2)
- Source: linuxcnc
- Report a bug
Determine whether two values are roughly equal.
loadrt near [count=N|names=name1[,name2...]]
out is true if in1 and in2 are within a factor of scale (i.e., for in1 positive, in1/scale <= in2 <= in1*scale), OR if their absolute difference is no greater than difference (i.e., |in1-in2| <= difference). out is false otherwise.
Chris Radek
GPL