Javascript Number fuzzyEqual(otherNumber)

Description

Javascript Number fuzzyEqual(otherNumber)


Number.prototype.fuzzyEqual = function(otherNumber)
{
    return Math.abs(this - otherNumber) <= 0.00001;
}



PreviousNext

Related