Lumiera  0.pre.03
»edit your freedom«
StringConv< double > Struct Template Reference

#include "lib/format-obj.hpp"

Description

template<>
struct util::StringConv< double >

explicit specialisation to control precision of double values.

Note
we set an explicit precision, since this is a diagnostic facility and we typically do not want to see all digits, but, for test code, we do want a predictable string representation of simple fractional values like 0.1 (which can not be represented as binary floats)

Definition at line 142 of file format-obj.hpp.

Static Public Member Functions

static std::string invoke (double val) noexcept
 
+ Collaboration diagram for StringConv< double >:

The documentation for this struct was generated from the following file: