Bewerken

Delen via


WorksheetFunction.DollarFr(Object, Object) Method

Definition

Converts a dollar price expressed as a decimal number into a dollar price expressed as a fraction. Use DOLLARFR to convert decimal numbers to fractional dollar numbers, such as securities prices.

public:
 double DollarFr(System::Object ^ Arg1, System::Object ^ Arg2);
public double DollarFr (object Arg1, object Arg2);
Public Function DollarFr (Arg1 As Object, Arg2 As Object) As Double

Parameters

Arg1
Object

Decimal_dollar - is a decimal number.

Arg2
Object

Fraction - the integer to use in the denominator of a fraction.

Returns

Remarks

If fraction is not an integer, it is truncated.

If fraction is less than 0, DollarFr returns the #NUM! error value.

If fraction is 0, DollarFr returns the #DIV/0! error value.

Applies to