Skip to content

Class TempLat::PrettyToString

ClassList > TempLat > PrettyToString

A class which attempts to write a float removing the unnnecessary 0 at the end. Not completely robust as this is a complicated problem but good enough for our purposes. More...

  • #include <prettytostring.h>

Public Functions

Type Name
PrettyToString () = default

Public Static Functions

Type Name
std::string get (R x, int prec=14)

Detailed Description

Unit test: ctest -R test-prettytostring

Public Functions Documentation

function PrettyToString

TempLat::PrettyToString::PrettyToString () = default

Public Static Functions Documentation

function get

template<typename R>
static inline std::string TempLat::PrettyToString::get (
    R x,
    int prec=14
) 


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