Click or drag to resize
FinanceDollarde Method
Converts a fractional price to a decimal price.

Namespace: Imsl.Finance
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public static double Dollarde(
	double fractionalDollar,
	int fraction
)

Parameters

fractionalDollar
Type: SystemDouble
A double which specifies a fractional number.
fraction
Type: SystemInt32
A int which specifies the denominator.

Return Value

Type: Double
A double which specifies the dollar price expressed as a decimal number.
Remarks
It is computed using the following:

{\it idollar} + \left( {{\it 
            fractionalDollar} - {\it idollar}} \right) \times {{10^{\left( {{\it 
            ifrac} + 1} \right)} } \over {\it fraction}}

where {\it idollar} is the integer part of {\it fractionalDollar}, and {\it ifrac} is the integer part of {\rm {log}}({\it fraction}).

See Also