MIRA
Namespaces | Functions
Truncate.h File Reference

Truncates a floating point value to a given number of decimals. More...

#include <cmath>
#include <type_traits>
#include <platform/Types.h>
Include dependency graph for Truncate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 

Functions

template<typename T >
truncate (T value, uint32 decimals)
 Truncates a floating point value to a given number of decimals. More...
 

Detailed Description

Truncates a floating point value to a given number of decimals.

Author
Tim Langner
Date
2012/01/04