36 #ifndef vtkNumberToString_h
37 #define vtkNumberToString_h
40 #include "vtkIOCoreModule.h"
46 VTK_ABI_NAMESPACE_BEGIN
59 void SetLowExponent(
int lowExponent);
71 void SetHighExponent(
int highExponent);
72 int GetHighExponent();
85 return std::to_string(val);
107 template <
typename T>
118 int LowExponent = -6;
119 int HighExponent = 20;
125 VTK_ABI_NAMESPACE_END
VTKIOCORE_EXPORT ostream & operator<<(ostream &stream, const vtkNumberToString::TagDouble &tag)
#define VTK_DEPRECATED_IN_9_3_0(reason)
TagDouble(const double &value)
VTKACCELERATORSVTKMCORE_EXPORT vtkDataArray * Convert(const vtkm::cont::Field &input)
const T & operator()(const T &val) const
std::string Convert(const T &val)
Set/Get the HighExponent for string conversion.
TagFloat(const float &value)
Convert floating and fixed point numbers to strings.