CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
number_comparisons.h
Go to the documentation of this file.
1#ifndef INCLUDE_GUARD__NUMBER_COMPARISONS_H__
2#define INCLUDE_GUARD__NUMBER_COMPARISONS_H__
3
4#include <stdint.h>
5
6uint8_t GEN_compare_doubles(double a, double b, double epsilon);
7
8uint8_t GEN_compare_floats(float a, float b, float epsilon);
9
10#endif // INCLUDE_GUARD__NUMBER_COMPARISONS_H__
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.
Definition number_comparisons.c:6
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.
Definition number_comparisons.c:13