4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * A selection of useful system functions made
10 * \author Lars Gullik Bjønnes
12 * Full author contact details are available in file CREDITS.
21 /// FIXME: some point to this hmm ?
22 int kill(int pid, int sig);
25 * Returns true if var is approximately equal to number with allowed error
28 * Usage: if (float_equal(var, number, 0.0001)) { }
30 * This will check if 'var' is approx. equal to 'number' with error of 1/1000
32 inline bool float_equal(double var, double number, double error)
34 return (number - error <= var && var <= number + error);
37 } // namespace support
40 #endif /* LYX_LIB_H */