All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.krono.utils.equality.kt Maven / Gradle / Ivy

The newest version!
package krono.utils

import kotlin.math.abs

fun equals(lhs: Double, rhs: Double, tolerance: Double = 0.001) = abs(rhs - lhs) <= tolerance




© 2015 - 2024 Weber Informatics LLC | Privacy Policy