EMA-XPS Online


IS-NEARLY

IS-NEARLY
=========


syntax: (is-nearly <object1> <object2> [<delta>])
                   ; Babylon Lisp
        (equalp <object1> <object2>)
                   ; Common Lisp

Warning: <delta> is not supported by EMA-XPS!

This function compares both objects. It returns T,
when the objects are almost equal. IS-NEARLY and
EQUALP can not be compared for numbers: EQUALP
works like '='.

example:       >(is-nearly #\a #\A)
               T
               >(is-nearly 1 1.0)
               T
               >(is-nearly 1 1.01 0.01)
               T


EMA-XPS Online