Difference between revisions of "Documentation/How Tos/Calc: DOLLARFR function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
m
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE: DOLLARFR function}}
 +
{{Documentation/CalcFunc FinancialTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_DOLLARDE_function
 +
|NextPage=Documentation/How_Tos/Calc:_Information_functions
 +
}}__NOTOC__
  
 
== DOLLARFR ==
 
== DOLLARFR ==
Converts a decimal number into a fractional representation.
+
Converts a decimal number into a fractional representation of that number.
  
 
=== Syntax: ===
 
=== Syntax: ===
Line 17: Line 22:
 
:  returns <tt>'''2.03'''</tt> as a number. <tt>'''2'''</tt> + <tt>'''3/16'''</tt> equals <tt>'''2.1875'''</tt>.
 
:  returns <tt>'''2.03'''</tt> as a number. <tt>'''2'''</tt> + <tt>'''3/16'''</tt> equals <tt>'''2.1875'''</tt>.
  
=== See also: ===
+
{{SeeAlso|EN|
[[Documentation/How_Tos/Calc: DOLLARDE function|'''DOLLARDE''']]
+
* [[Documentation/How_Tos/Calc: DOLLARDE function|DOLLARDE]]
  
[[Documentation/How_Tos/Calc: Financial functions|'''Financial functions''']]
+
* [[Documentation/How_Tos/Calc: VALUE function|VALUE]]
 +
 
 +
* [[Documentation/How_Tos/Calc: Financial functions|Financial functions]]
 +
 
 +
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 +
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 +
[[Category: Documentation/Reference/Calc/Financial functions]]

Latest revision as of 12:32, 31 January 2024

DOLLARFR

Converts a decimal number into a fractional representation of that number.

Syntax:

DOLLARFR(decimal; denominator)

decimal: the decimal number.
denominator: the denominator for the fractional representation.
Sometimes a security price, for example, might be expressed as 2.03, a fractional representation meaning $2 and 3/16 of a dollar. As a decimal this is 2.1875.
DOLLARFR converts the decimal representation to a fractional representation. Despite its name, it returns a number, not a currency. Its inverse is DOLLARDE.

Example:

DOLLARFR(2.1875; 16)

returns 2.03 as a number. 2 + 3/16 equals 2.1875.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_DOLLARFR_function&oldid=259786"
Views
Personal tools
Navigation
Tools
In other languages