Converts a decimal price to a fractional price.
Namespace: Imsl.FinanceAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic static double Dollarfr(
double decimalDollar,
int fraction
)
Public Shared Function Dollarfr (
decimalDollar As Double,
fraction As Integer
) As Double
public:
static double Dollarfr(
double decimalDollar,
int fraction
)
static member Dollarfr :
decimalDollar : float *
fraction : int -> float
Parameters
- decimalDollar
- Type: SystemDouble
A double which specifies a decimal number.
- fraction
- Type: SystemInt32
A int which specifies the denominator.
Return Value
Type:
Double
A
double which specifies a dollar price expressed as a
fraction.
Remarks
It is computed using the following:
where
is the integer part of the
, and
is the integer part of
.
See Also