| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

# 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_v22r4/GaudiKernel/GaudiKernel/Lomont.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines