DecimalFormatter Class Reference

#include <ql/basicdataformatters.hpp>

List of all members.


Detailed Description

Formats real numbers for output.

Deprecated:
use streams and manipulators for proper formatting


Static Public Member Functions

static std::string toString (Decimal x, Integer precision=6, Integer digits=0)
static std::string toExponential (Decimal x, Integer precision=6, Integer digits=0)
static std::string toPercentage (Decimal x, Integer precision=6, Integer digits=0)


Member Function Documentation

static std::string toExponential Decimal  x,
Integer  precision = 6,
Integer  digits = 0
[static]
 

Deprecated:
use streams and manipulators for proper formatting


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen