Converts a dollar price expressed as an integer part and a fraction part, such as 1.02, into a dollar price expressed as a decimal number. Fractional dollar numbers are sometimes used for security prices.
The fraction part of the value is divided by an integer that you specify. For example, if you want your price to be expressed to a precision of 1/16 of a dollar, you divide the fraction part by 16. In this case, 1.02 represents $1.125 ($1 + 2/16 = $1.125).
Fractional_dollar is a number expressed as an integer part and a fraction part, separated by a decimal symbol.
Fraction is the integer to use in the denominator of the fraction.
- If fraction is not an integer, it is truncated.
- If fraction is less than 0, DOLLARDE returns the #NUM! error value.
- If fraction is greater than or equal to 0 and less than 1, DOLLARDE returns the #DIV/0! error value.
The example may be easier to understand if you copy it to a blank worksheet.
How to copy an example
- Create a blank workbook or worksheet.
- Select the example in the Help topic.
Note Do not select the row or column headers.
Selecting an example from Help
- Press CTRL+C.
- In the worksheet, select cell A1, and press CTRL+V.
- To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
||Converts 1.02, read as 1 and 2/16, to a decimal number (1.125). Because the fraction value is 16, the price has a precision of 1/16 of a dollar.
||Converts 1.1, read as 1 and 10/32, to a decimal number (1.3125). Because the fraction value is 32, the price has a precision of 1/32 of a dollar.