Comparing different types for same-ish-ness.
Comparing different types for same-ish-ness.
The function for comparing individual floats/doubles. Can be overridden using [[with-comparator]] or [[set-comparator!]].
The function for comparing individual floats/doubles. Can be overridden using [[with-comparator]] or [[set-comparator!]].
Protocol for approximately comparing any types (using *comparator*
for floating point parts).
Protocol for approximately comparing any types (using [[*comparator*]] for floating point parts).
(ish this that)
Return true if the two arguments are approximately equal.
Return true if the two arguments are approximately equal.
The default comparator. Stored in a separate var to make it easier to reset after modifying with [[set-comparator!]]
The default comparator. Stored in a separate var to make it easier to reset after modifying with [[set-comparator!]]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close