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.
24 /// FIXME: some point to this hmm ?
25 int kill(int pid, int sig);
31 * Returns true if var is approximately equal to number with allowed error
34 * Usage: if (float_equal(var, number, 0.0001)) { }
36 * This will check if 'var' is approx. equal to 'number' with error of 1/1000
38 inline bool float_equal(double var, double number, double error)
40 return (number - error <= var && var <= number + error);
43 } // namespace support
46 #endif /* LYX_LIB_H */