/**
 * Determine if two floating-point numbers are equal within a certain epsilon value.
 *
 * @param a The first floating number.
 * @param b The second floating number.
 * @param epsilon The maximum allowable difference between two floating numbers.
 * @return True if the absolute difference between a and b is less than or equal to epsilon, False otherwise.
 */
fun compareFloats(a: Double, b: Double, epsilon: Double): Boolean {

    val diff = Math.abs(a - b)
    return diff <= epsilon
}
/**
 * Determine if two floating-point numbers are equal within a certain epsilon value.
 *
 * @param a The first floating number.
 * @param b The second floating number.
 * @param epsilon The maximum allowable difference between two floating numbers.
 * @return True if the absolute difference between a and b is less than or equal to epsilon, False otherwise.
 */
fun compareFloats(a: Double, b: Double, epsilon: Double): Boolean {
/**
 * Determine if two floating-point numbers are equal within a certain epsilon value.
 *
 * @param a The first floating number.
 * @param b The second floating number.
 * @param epsilon The maximum allowable difference between two floating numbers.
 * @return True if the absolute difference between a and b is less than or equal to epsilon, False otherwise.
 */
fun compareFloats(a: Double, b: Double, epsilon: Double): Boolean {

    val diff = Math.abs(a - b)
    return diff <= epsilon
}