mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-21 04:11:48 +03:00
9 lines
174 B
C
9 lines
174 B
C
|
#include "float_tools.h"
|
||
|
|
||
|
#include <math.h>
|
||
|
#include <float.h>
|
||
|
|
||
|
bool float_is_equal(float a, float b) {
|
||
|
return fabsf(a - b) <= FLT_EPSILON * fmaxf(fabsf(a), fabsf(b));
|
||
|
}
|