bpmnr/nr_checks.c File Reference


Detailed Description

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)


Function Documentation

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 ;-)

Parameters:
x floating point argument
Returns:
TRUE if argument is indeed an integer value, FALSE if not

Definition at line 21 of file nr_checks.c.

Referenced by nr_gammln().


Generated on Wed Jun 25 17:32:12 2008 for libbpm by  doxygen 1.5.6