ledger-core
Public Member Functions | Public Attributes | List of all members
ledger::core::api::FormatRules Struct Referencefinal

#include <FormatRules.hpp>

Public Member Functions

 FormatRules (RoundingMode roundingMode_, int32_t maxNumberOfDecimals_)
 
 FormatRules (const FormatRules &cpy)
 
FormatRulesoperator= (const FormatRules &cpy)
 
template<class Archive >
void load (Archive &archive)
 
template<class Archive >
void save (Archive &archive) const
 

Public Attributes

RoundingMode roundingMode
 
int32_t maxNumberOfDecimals
 

Detailed Description

Formatting rules to format amounts to strings.

Member Data Documentation

◆ maxNumberOfDecimals

int32_t ledger::core::api::FormatRules::maxNumberOfDecimals

The maximum number of decimals formatted decimals will have.

◆ roundingMode

RoundingMode ledger::core::api::FormatRules::roundingMode

How should we round decimal values?


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