WorksheetFunction.DollarFr method (Excel)
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.
Syntax
expression.DollarFr (Arg1, Arg2)
expression A variable that represents a WorksheetFunction object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Arg1 | Required | Variant | Decimal_dollar - a decimal number. |
Arg2 | Required | Variant | Fraction - the integer to use in the denominator of a fraction. |
Return value
Double
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.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro