CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
number_comparisons.h File Reference
#include <stdint.h>
Include dependency graph for number_comparisons.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint8_t GEN_compare_doubles (double a, double b, double epsilon)
 Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise.
 
uint8_t GEN_compare_floats (float a, float b, float epsilon)
 Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise.
 

Function Documentation

◆ GEN_compare_doubles()

uint8_t GEN_compare_doubles ( double a,
double b,
double epsilon )

Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise.

Returns
Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise
Here is the caller graph for this function:

◆ GEN_compare_floats()

uint8_t GEN_compare_floats ( float a,
float b,
float epsilon )

Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise.

Returns
Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise