Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Eps is the machine precision. Eps float64 = math.Nextafter(1.0, 2.0) - 1.0 )
Functions ¶
func Equal ¶
Equal checks the equality of two floating point values, up to 1 unit in the last place, using machine precision.
func EqualEps ¶
EqualEps checks the equality of two floating point values, up to 1 unit in the last place, using eps as the precision.
func EqualEpsUlp ¶
EqualEpsUlp checks the equality of two floating point values, up to ulp units in the last place, using eps as the precision.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.