Definition in file nr_checks.c.
#include <bpm/bpm_messages.h>
#include <bpm/bpm_nr.h>
Include dependency graph for nr_checks.c:
Go to the source code of this file.
Functions | |
int | nr_is_int (double x) |
int | nr_is_pow2 (unsigned long n) |
int nr_is_int | ( | double | x | ) |
Checks whether the given double is an integer value, handy for doing domain checking to prevent e.g. the function nr_gammln print out "nan" or "inf" values...
For double precision, this check is accurate to 1.0E-323 ... should be enough ;-)
x | floating point argument |
Definition at line 21 of file nr_checks.c.
Referenced by nr_gammln().