Main MRPT website > C++ reference for MRPT 1.5.6
Namespaces | Macros | Functions
round.h File Reference
#include <mrpt/utils/SSE_types.h>
#include <cmath>
Include dependency graph for round.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


 This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
 Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.




template<typename T >
int mrpt::utils::round (const T value)
 Returns the closer integer (int) to x. More...
template<typename T >
long mrpt::utils::round_long (const T value)
 Returns the closer integer (long) to x. More...
template<class T >
mrpt::utils::round_10power (T val, int power10)
 Round a decimal number up to the given 10'th power (eg, to 1000,100,10, and also fractions) power10 means round up to: 1 -> 10, 2 -> 100, 3 -> 1000, ... More...

Macro Definition Documentation


Definition at line 13 of file round.h.

Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018