Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::dragon::dragon_context Struct Reference

Dragon context: configuration for decimal conversion. More...

#include <dragon.hpp>

Public Member Functions

 dragon_context (std::ios_base::fmtflags f=std::ios_base::dec, std::streamsize prec=6)

Public Attributes

std::ios_base::fmtflags flags
std::streamsize precision
bool use_scientific
bool use_fixed
bool show_pos
bool uppercase
bool shortest

Detailed Description

Dragon context: configuration for decimal conversion.

Constructor & Destructor Documentation

◆ dragon_context()

sw::universal::dragon::dragon_context::dragon_context ( std::ios_base::fmtflags f = std::ios_base::dec,
std::streamsize prec = 6 )
inline

Member Data Documentation

◆ flags

std::ios_base::fmtflags sw::universal::dragon::dragon_context::flags

◆ precision

std::streamsize sw::universal::dragon::dragon_context::precision

◆ shortest

bool sw::universal::dragon::dragon_context::shortest

◆ show_pos

bool sw::universal::dragon::dragon_context::show_pos

◆ uppercase

bool sw::universal::dragon::dragon_context::uppercase

◆ use_fixed

bool sw::universal::dragon::dragon_context::use_fixed

◆ use_scientific

bool sw::universal::dragon::dragon_context::use_scientific

The documentation for this struct was generated from the following file:
  • /home/runner/work/universal/universal/include/sw/universal/number/support/dragon.hpp