DOLLARDE
Converts fractional-dollar notation into a decimal dollar value.
This is commonly used for security price formats such as thirty-seconds (fraction = 32).
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=DOLLARDE(fractional_dollar, fraction)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
fractional_dollar | number | Required | — |
fraction | number | Required | — |
Remarks
fractionis truncated to an integer denominator and must be>= 1.- Sign convention: sign is preserved (
-xmaps to-result). - No periodic rate is involved in this conversion.
- Fractional parsing uses denominator digit width (
ceil(log10(fraction))).
Error cases
- Returns
#NUM!whenfraction < 1after truncation.
Examples
Convert a dollar amount expressed with a 32-part fraction.
Formula =DOLLARDE(1.25,32)
Expected result 1.78125
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Use a negative dollar amount and a different fraction base.
Formula =DOLLARDE(-1.25,16)
Expected result -2.5625
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Zero remains zero under the conversion.
Formula =DOLLARDE(0,32)
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A zero fraction denominator cannot define the conversion.
Formula =DOLLARDE(1.25,0)
Expected result #NUM!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Convert 1 and 2 sixteenths to a decimal dollar quote.
Formula =DOLLARDE(1.02, 16)
Expected result 1.125
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Convert a negative dollar quote whose fractional part is 15 thirty-seconds.
Formula =DOLLARDE(-3.15, 32)
Expected result -3.46875
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Why does DOLLARDE truncate fraction?
The denominator is treated as an integer quote base; values below 1 after truncation return #NUM!.