for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ctefan\Kiwi;
class Util
{
private const EPSILON = 1.0e-8;
/**
* @param float $value
* @return bool
*/
static public function isNearZero(float $value): bool
return $value < 0.0
? -$value < self::EPSILON
: $value < self::EPSILON;
}