/**
 * This function takes a list of floating-point values and an epsilon value as input.
 * It returns a new list that contains only the values that are approximately equal to zero,
 * considering the given epsilon tolerance.
 *
 * Your task is to complete the missing code in the list comprehension.
 *
 * @param epsilon The maximum tolerance allowed to consider a value as zero
 * @param values A list of floating-point values
 * @return A list of values approximately equal to zero
 */
fun checkApproximation(epsilon: Float, values: List<Float>): List<Float> {

    // Missing code here: Complete the code below to generate the desired list using a list comprehension
    val zeroValues = values.filter { Math.abs(it) < epsilon }
    
    return zeroValues
}
/**
 * This function takes a list of floating-point values and an epsilon value as input.
 * It returns a new list that contains only the values that are approximately equal to zero,
 * considering the given epsilon tolerance.
 *
 * Your task is to complete the missing code in the list comprehension.
 *
 * @param epsilon The maximum tolerance allowed to consider a value as zero
 * @param values A list of floating-point values
 * @return A list of values approximately equal to zero
 */
fun checkApproximation(epsilon: Float, values: List<Float>): List<Float> {
/**
 * This function takes a list of floating-point values and an epsilon value as input.
 * It returns a new list that contains only the values that are approximately equal to zero,
 * considering the given epsilon tolerance.
 *
 * Your task is to complete the missing code in the list comprehension.
 *
 * @param epsilon The maximum tolerance allowed to consider a value as zero
 * @param values A list of floating-point values
 * @return A list of values approximately equal to zero
 */
fun checkApproximation(epsilon: Float, values: List<Float>): List<Float> {

    // Missing code here: Complete the code below to generate the desired list using a list comprehension
    val zeroValues = values.filter { Math.abs(it) < epsilon }
    
    return zeroValues
}