Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
StringConv< double > Struct Reference

#include "lib/format-obj.hpp"

Description

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
 

Member Function Documentation

◆ invoke()

static std::string invoke ( double  val)
inlinestaticnoexcept

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

References util::showDouble().

+ Here is the call graph for this function:
+ Collaboration diagram for StringConv< double >:

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