libpniio
Static Public Member Functions
pni::io::float_policy< T > Struct Template Reference

policy for real numbers More...

#include <float_policy.hpp>

Inheritance diagram for pni::io::float_policy< T >:
Inheritance graph
[legend]
Collaboration diagram for pni::io::float_policy< T >:
Collaboration graph
[legend]

Static Public Member Functions

static int floatfield (T)
 use scientific format by default More...
 
static int precision (T)
 set output to full number precision More...
 

Detailed Description

template<typename T>
struct pni::io::float_policy< T >

Formatting policy for real numbers. The current policy differs from the C++ default in two ways

The idea behind this policy is to avoid accidental truncations of floating point numbers during ASCII output. This policy is used in all cases where a floating point type should be converted to a character string.

Template Parameters
Tfloating point type

Member Function Documentation

template<typename T >
static int pni::io::float_policy< T >::floatfield ( )
inlinestatic
template<typename T >
static int pni::io::float_policy< T >::precision ( )
inlinestatic

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