#pragma once

#include <math.h>
#include <stdbool.h>

/// Compare two floats for equality.
static inline bool float_eq(float a, float b, float eps) {
  return fabsf(a - b) <= eps;
}