isZero

fun isZero(value: Float): Boolean

Returns true if the value is zero (using the default tolerance as upper bound)


fun isZero(value: Float, tolerance: Float): Boolean

Returns true if the value is zero.

Parameters

tolerance

represent an upper bound below which the value is considered zero.