C# Class Paymetheus.Decred.Denomination

Show file Open project: decred/Paymetheus

Public Properties

Property Type Description
Decred Denomination
MicroDecred Denomination
MillaDecred Denomination

Public Methods

Method Description
AmountFromDouble ( double value ) : Amount
AmountFromString ( string value ) : Amount
DoubleFromAmount ( Amount amount ) : double
FormatAmount ( Amount amount ) : string
Split ( Amount amount ) : double>.Tuple

Private Methods

Method Description
Denomination ( long atomsPerUnit, int decimalPoints, string formatString, string ticker ) : System
Round ( double value ) : Amount

Method Details

AmountFromDouble() public method

public AmountFromDouble ( double value ) : Amount
value double
return Amount

AmountFromString() public method

public AmountFromString ( string value ) : Amount
value string
return Amount

DoubleFromAmount() public method

public DoubleFromAmount ( Amount amount ) : double
amount Amount
return double

FormatAmount() public method

public FormatAmount ( Amount amount ) : string
amount Amount
return string

Split() public method

public Split ( Amount amount ) : double>.Tuple
amount Amount
return double>.Tuple

Property Details

Decred public static property

public static Denomination,Paymetheus.Decred Decred
return Denomination

MicroDecred public static property

public static Denomination,Paymetheus.Decred MicroDecred
return Denomination

MillaDecred public static property

public static Denomination,Paymetheus.Decred MillaDecred
return Denomination