Arkulib
Namespaces | Functions
Utils.hpp File Reference
#include <cmath>
#include <sstream>
#include "../Constant.hpp"

Go to the source code of this file.

Namespaces

namespace  Arkulib
 
namespace  Arkulib::Tools
 

Functions

template<typename FloatingType = double>
auto Arkulib::Tools::roundToWantedPrecision (const FloatingType value, const int precision=10e4)
 Round a number for a wanted precision (the digits) More...
 
template<typename Type >
std::string Arkulib::Tools::toStringWithPrecision (const Type value, const int precision=Arkulib::Constant::DEFAULT_COUT_ERATIONAL_DIGITS)
 Let the user set the precision while transforming a floating point to a string. More...
 
template<typename Type >
int Arkulib::Tools::getNumberLength (const Type value)
 Get the length on a number. More...
 

Detailed Description

Author
Elise MASSA
Mattéo LECLERCQ
Date
2022

Definition in file Utils.hpp.