BoosterSeat  0.1
A C++ library that includes common utilities that are used in other projects.
numbers.hpp File Reference
#include <cmath>
#include <iomanip>
#include <sstream>
Include dependency graph for numbers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 bst
 

Functions

double bst::doubleToPrecisionTwo (double)
 Rounds a double to two decimal places. For example: 1.2345 -> 1.23. More...
 
bool bst::isApproxEqual (double a, double b, double epsilon)
 Just a simple function to compare two doubles by a given epsilon. More...
 
bool bst::isApproxEqualPercent (const double a, const double b, const double percent)
 
std::string bst::rndTs (double d, int precision)