Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Attributes | List of all members
uni20::scalar_format_options Struct Reference

Formatting options for Uni20 real and complex scalars. More...

#include <scalar_io.hpp>

Public Attributes

bool exact_fractions = true
 Exact rationals use fractions unless decimal rounding is explicitly requested.
 
std::string_view imaginary_unit = "i"
 
bool normalize_negative_zero = true
 
real_format_notation notation = real_format_notation::general
 
int precision = -1
 

Detailed Description

Formatting options for Uni20 real and complex scalars.

Member Data Documentation

◆ exact_fractions

bool uni20::scalar_format_options::exact_fractions = true

Exact rationals use fractions unless decimal rounding is explicitly requested.

◆ imaginary_unit

std::string_view uni20::scalar_format_options::imaginary_unit = "i"

◆ normalize_negative_zero

bool uni20::scalar_format_options::normalize_negative_zero = true

◆ notation

real_format_notation uni20::scalar_format_options::notation = real_format_notation::general

◆ precision

int uni20::scalar_format_options::precision = -1

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