float_tools.h 340 B

12345678910111213141516171819
  1. #pragma once
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. #include <stdbool.h>
  6. /** Compare two floating point numbers
  7. * @param a First number to compare
  8. * @param b Second number to compare
  9. *
  10. * @return bool true if a equals b, false otherwise
  11. */
  12. bool float_is_equal(float a, float b);
  13. #ifdef __cplusplus
  14. }
  15. #endif