36#ifndef vtkNumberToString_h
37#define vtkNumberToString_h
40#include "vtkIOCoreModule.h"
46VTK_ABI_NAMESPACE_BEGIN
85 return std::to_string(val);
107 template <
typename T>
118 int LowExponent = -6;
119 int HighExponent = 20;
Convert floating and fixed point numbers to strings.
const T & operator()(const T &val) const
int GetHighExponent()
Set/Get the HighExponent for string conversion.
int GetLowExponent()
Set/Get the LowExponent for string conversion.
void SetLowExponent(int lowExponent)
Set/Get the LowExponent for string conversion.
std::string Convert(float val)
Set/Get the HighExponent for string conversion.
void SetHighExponent(int highExponent)
Set/Get the HighExponent for string conversion.
std::string Convert(const T &val)
Set/Get the HighExponent for string conversion.
std::string Convert(double val)
Convert a number to an accurate string representation of that number.
TagDouble(const double &value)
TagFloat(const float &value)
#define VTK_DEPRECATED_IN_9_3_0(reason)
VTKIOCORE_EXPORT ostream & operator<<(ostream &stream, const vtkNumberToString::TagDouble &tag)