npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
closeWithinTolerance.hh File Reference

Determine if two doubles are within requested relative tolerance of each other. More...

#include <cmath>
#include <algorithm>
#include <stdexcept>

Go to the source code of this file.

Namespaces

 npstat
 

Functions

bool npstat::closeWithinTolerance (const double &a, const double &b, const double &tol)
 

Detailed Description

Determine if two doubles are within requested relative tolerance of each other.

Author: I. Volobouev

July 2012