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

com.enonic.xp.util.DoubleHelper Maven / Gradle / Ivy

The newest version!
package com.enonic.xp.util;


import com.google.common.math.DoubleMath;

public class DoubleHelper
{
    private static final Double EPSILON = 1.11e-16;

    public static boolean fuzzyEquals( final double first, final double second )
    {
        return DoubleMath.fuzzyEquals( first, second, EPSILON );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy