Converts a fractional price to a decimal price.
Namespace: Imsl.FinanceAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic static double Dollarde(
double fractionalDollar,
int fraction
)
Public Shared Function Dollarde (
fractionalDollar As Double,
fraction As Integer
) As Double
public:
static double Dollarde(
double fractionalDollar,
int fraction
)
static member Dollarde :
fractionalDollar : float *
fraction : int -> float
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:
where
is the integer part of
, and
is the integer part of
.
See Also