| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 2010

# Lomont Class Reference

The equality comparison of double numbers using as the metric the maximal number of Units in the Last Place (ULP). More...

`#include <Lomont.h>`

## Detailed Description

The equality comparison of double numbers using as the metric the maximal number of Units in the Last Place (ULP).

It is a slightly modified version of very efficient implementation of the initial Bruce Dawson's algorithm by Chris Lomont.

See also:
  www.lomont.org

  http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm

C.Lomont claims the algorithm is factor 2-10 more efficient with respect to classical Knuth's algorithm for comparison of the floating number using the relative precision.

Attention:
  Only the specializations of this class has sense!

Author:
  Vanya BELYAEV Ivan.Belyaev@nikhef.nl

Date:
  2009-10-22

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r7/GaudiKernel/GaudiKernel/Lomont.h