/**
 * This function checks if a given floating-point number is close enough to zero within a certain tolerance.
 *
 * @param number The floating-point number to be checked.
 * @param tolerance The maximum acceptable difference from zero.
 * @return True if the number is close enough to zero, False otherwise.
 */
fun isCloseToZero(number: Double, tolerance: Double): Boolean {

    if (number == 0.0 || Math.abs(number) < tolerance) {
        return true
    } else {
        return false
    }
}
/**
 * This function checks if a given floating-point number is close enough to zero within a certain tolerance.
 *
 * @param number The floating-point number to be checked.
 * @param tolerance The maximum acceptable difference from zero.
 * @return True if the number is close enough to zero, False otherwise.
 */
fun isCloseToZero(number: Double, tolerance: Double): Boolean {
/**
 * This function checks if a given floating-point number is close enough to zero within a certain tolerance.
 *
 * @param number The floating-point number to be checked.
 * @param tolerance The maximum acceptable difference from zero.
 * @return True if the number is close enough to zero, False otherwise.
 */
fun isCloseToZero(number: Double, tolerance: Double): Boolean {

    if (number == 0.0 || Math.abs(number) < tolerance) {
        return true
    } else {
        return false
    }
}