Documentation
¶
Overview ¶
Package fltcmp implements ULP float comparison. https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlmostEqual ¶
AlmostEqual tells you how close two floats are. Make maxUlpsDiff 1 if they need be really, really close. Returns true if the ULP is within the threshold.
func AlmostEqual32 ¶
AlmostEqual32 tells you how close two floats are. Make maxUlpsDiff 1 if they need be really, really close. Returns true if the ULP is within the threshold.
func FloatDiff32 ¶
FloatDiff32 finds the ULP difference between two floats.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.