near9
Determine whether two values are roughly equal.
Usage
loadrt near [count=N|names=name1[,name2...]]
Functions
near.N (requires a floating-point thread)
Pins
- near.N.in1 float in
- near.N.in2 float in
- near.N.out bit out
-
outis true ifin1andin2are within a factor ofscale(i.e., for in1 positive, in1/scale <= in2 <= in1*scale), OR if their absolute difference is no greater thandifference(i.e., |in1-in2| <= difference).outis false otherwise.
Parameters
- near.N.scale float rw (default: 1)
- near.N.difference float rw (default: 0)
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.