Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
math_utils.h File Reference
#include "grassroots_util_library.h"
#include "typedefs.h"
Include dependency graph for math_utils.h:

Go to the source code of this file.

Functions

int CompareDoubles (const double d1, const double d2)
 Compare two doubles taking the epsilon of this computer into account. More...
 
int CompareFloats (const float f1, const float f2)
 Compare two floats taking the epsilon of this computer into account. More...
 
bool GetValidRealNumber (const char **str_pp, double64 *data_p, const char *const alternative_decimal_points_s)
 Since atof, atoi, etc. More...
 
bool GetValidInteger (const char **str_pp, int *answer_p)
 Since atof, atoi, etc. More...
 
bool GetValidLong (const char **str_pp, long *answer_p)
 Since atof, atoi, etc. More...
 
int SortDoubles (const void *v1_p, const void *v2_p)
 Compare two doubles taking the epsilon of this computer into account. More...
 
char * ConvertIntegerToString (const int32 value)
 Get an integer as a string, e.g. More...
 
char * ConvertUnsignedIntegerToString (const uint32 value)
 Get an unsigned integer as a string, e.g. More...
 
char * ConvertLongToString (const int64 value)
 Get an int64 as a string, e.g. More...
 
char * ConvertDoubleToString (const double64 value)
 Get an double as a string, e.g. More...
 
char * ConvertSizeTToString (const size_t value)
 Get an size_t as a string, e.g. More...