Skip to content

Class TempLat::FloatToString

ClassList > TempLat > FloatToString

A class which holds one static method (format) which returns a nicer string representation of a floating point value, for display purposes (not too many significant digits). More...

  • #include <floattostring.h>

Public Static Functions

Type Name
std::string format (T value)
::value std::string format_more (T value, int ndig)

Detailed Description

Unit test: ctest -R test-floattostring

Public Static Functions Documentation

function format

template<typename T>
static inline std::string TempLat::FloatToString::format (
    T value
) 

function format_more

template<typename T>
static inline ::value std::string TempLat::FloatToString::format_more (
    T value,
    int ndig
) 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/util/floattostring.h