Main MRPT website > C++ reference for MRPT 1.4.0
Namespaces | Macros | Functions
round.h File Reference
#include <mrpt/utils/SSE_types.h>
#include <cmath>

Go to the source code of this file.

Namespaces

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

Macros

#define _USE_MATH_DEFINES
 

Functions

template<typename T >
int mrpt::utils::round (const T value)
 Returns the closer integer (int) to x.
 
template<typename T >
long mrpt::utils::round_long (const T value)
 Returns the closer integer (long) to x.
 
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, ... -1 -> 0.1, -2 -> 0.01, ...
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 13 of file round.h.




Page generated by Doxygen 1.9.8 for MRPT 1.4.0 SVN: at Fri Dec 15 05:36:48 UTC 2023