/**
 * Function to compare two floating-point numbers with epsilon tolerance.
 *
 * @param a First floating-point number.
 * @param b Second floating-point number.
 * @return True if the absolute difference between the two numbers is less than epsilon, False otherwise.
 */
fun compareFloats(a: Double, b: Double): Boolean {

    val epsilon = 0.0001
    return Math.abs(a - b) < epsilon
}
/**
 * Function to compare two floating-point numbers with epsilon tolerance.
 *
 * @param a First floating-point number.
 * @param b Second floating-point number.
 * @return True if the absolute difference between the two numbers is less than epsilon, False otherwise.
 */
fun compareFloats(a: Double, b: Double): Boolean {
/**
 * Function to compare two floating-point numbers with epsilon tolerance.
 *
 * @param a First floating-point number.
 * @param b Second floating-point number.
 * @return True if the absolute difference between the two numbers is less than epsilon, False otherwise.
 */
fun compareFloats(a: Double, b: Double): Boolean {

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