ITK  5.2.0
Insight Toolkit
Public Member Functions | List of all members
itk::NumberToString< TValue > Class Template Reference

#include <itkNumberToString.h>

Public Member Functions

ITKCommon_EXPORT std::string operator() (double val)
ITKCommon_EXPORT std::string operator() (float val)
std::string operator() (TValue val)

Detailed Description

template<typename TValue>
class itk::NumberToString< TValue >

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.

Member Function Documentation

◆ operator()() [1/3]

ITKCommon_EXPORT std::string itk::NumberToString< double >::operator() ( double  val)

◆ operator()() [2/3]

ITKCommon_EXPORT std::string itk::NumberToString< float >::operator() ( float  val)

◆ operator()() [3/3]

template<typename TValue>
std::string itk::NumberToString< TValue >::operator() ( TValue  val)

The documentation for this class was generated from the following file: