49 #ifndef vtkNumberToString_h
50 #define vtkNumberToString_h
52 #include "vtkCommonCoreModule.h"
58 VTK_ABI_NAMESPACE_BEGIN
72 void SetLowExponent(
int lowExponent);
85 void SetHighExponent(
int highExponent);
86 int GetHighExponent();
107 void SetNotation(
int notation);
120 void SetPrecision(
int precision);
132 template <
typename T>
157 template <
typename T>
164 int LowExponent = -6;
165 int HighExponent = 20;
166 int Notation = Mixed;
173 VTK_ABI_NAMESPACE_END
std::string VTKCOMMONCORE_EXPORT to_string(vtkArrayComponents enumerant)
Given an enumerant, return a human-presentable string with its value.
TagDouble(const double &value)
T operator()(const T &val) const
std::string Convert(const T &val)
Convert a number to an accurate string representation of that number.
TagFloat(const float &value)
Convert floating and fixed point numbers to strings.
VTKACCELERATORSVTKMCORE_EXPORT vtkDataArray * Convert(const viskores::cont::Field &input)
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &stream, const vtkNumberToString::TagDouble &tag)