ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkNumberToString.h>
Convert floating and fixed point numbers to strings.
This class uses the double-conversion library to floating point and fixed point numbers to ASCII versions that are represented without numerical precision errors.
Typical use: #include "itkNumberToString.h" NumberToString<float> convert; float a = 1.0f/3.0f; std::cout << convert(a) << std::endl;
Definition at line 42 of file itkNumberToString.h.
Public Member Functions | |
std::string | operator() (TValue val) |
template<> | |
ITKCommon_EXPORT std::string | operator() (double val) |
template<> | |
ITKCommon_EXPORT std::string | operator() (float val) |
Private Member Functions | |
NumberToString & | operator= (const NumberToString &)=delete |
std::string itk::NumberToString< TValue >::operator() | ( | TValue | val | ) |
ITKCommon_EXPORT std::string itk::NumberToString< double >::operator() | ( | double | val | ) |
ITKCommon_EXPORT std::string itk::NumberToString< float >::operator() | ( | float | val | ) |
|
privatedelete |