unleashed-firmware/lib/toolbox/float_tools.h
Georgii Surkov 8582670a34
[FL-2811] Fix PVS-Studio warnings (#2142)
Co-authored-by: あく <alleteam@gmail.com>
Co-authored-by: gornekich <n.gorbadey@gmail.com>
2022-12-26 21:13:30 +09:00

19 lines
340 B
C

#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
/** Compare two floating point numbers
* @param a First number to compare
* @param b Second number to compare
*
* @return bool true if a equals b, false otherwise
*/
bool float_is_equal(float a, float b);
#ifdef __cplusplus
}
#endif