failed attempts to intercept copy command when the cursor is in the empty text field...
[LeanCalc.git] / help / near
1 NAME
2     near - compare nearness of two numbers with a standard
3
4 SYNOPSIS
5     near(x, y [,eps])
6
7 TYPES
8     x           real
9     y           real
10     eps         real, defaults to epsilon()
11
12     return      -1, 0 or 1
13
14 DESCRIPTION
15     Returns:
16         -1      if abs(x - y) < abs(eps)
17         0       if abs(x - y) = abs(eps)
18         1       if abs(x - y) > abs(eps)
19
20 EXAMPLE
21     > print near(22/7, 3.15, .01), near(22/7, 3.15, .005)
22     -1 1
23
24 LIMITS
25     eps >= 0
26
27 LINK LIBRARY
28     FLAG qnear(NUMBER *x, NUMBER *y, NUMBER *eps)
29
30 SEE ALSO
31     epsilon, abs
32