Difference between revisions of "Manuals/calci/DOLLARFR"

From ZCubes Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=DOLLARFR(DD, Fraction)=
+
<div style="font-size:30px">'''DOLLARFR (DecimalDollar,Fraction)'''</div><br/>
  
 
where,
 
where,
*<math>DD</math> is a dollar value in decimal
+
*<math>DecimalDollar</math> is a dollar value in decimal
 
*<math>Fraction</math> is the integer to use as a denominator
 
*<math>Fraction</math> is the integer to use as a denominator
 
+
**DOLLARFR(), converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction.
DOLLARFR() converts a dollar price in decimal number to dollar price in fraction.
 
  
 
== Description ==
 
== Description ==
  
DOLLARFR(DD, Fraction)
+
DOLLARFR (DecimalDollar,Fraction)
  
*Argument <math>DD</math> is a decimal number to be converted into fraction.
+
*Argument <math>DecimalDollar</math> is a decimal number to be converted into fraction.
 
*Argument <math>Fraction</math> is an integer to be used as a denominator in conversion to fractional value.
 
*Argument <math>Fraction</math> is an integer to be used as a denominator in conversion to fractional value.
*Calci divides the fractional part of <math>DD</math> by the specified <math>Fraction</math> value.
+
*Calci divides the fractional part of <math>DecimalDollar</math> by the specified <math>Fraction</math> value.
 
*<math>Fraction</math> should be &gt;=1, else Calci displays #ERROR message.
 
*<math>Fraction</math> should be &gt;=1, else Calci displays #ERROR message.
 
*If <math>Fraction</math> is not an integer, it is truncated.
 
*If <math>Fraction</math> is not an integer, it is truncated.
Line 38: Line 37:
 
| class="sshl_f" |3.02
 
| class="sshl_f" |3.02
 
|}
 
|}
 +
 +
==Related Videos==
 +
 +
{{#ev:youtube|v=AUXYkOTkItI|280|center|DOLLARFR}}
  
 
== See Also ==
 
== See Also ==
Line 47: Line 50:
  
 
*[http://en.wikipedia.org/wiki/Dollar Dollar]
 
*[http://en.wikipedia.org/wiki/Dollar Dollar]
 +
 +
 +
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 14:53, 15 November 2018

DOLLARFR (DecimalDollar,Fraction)


where,

  • is a dollar value in decimal
  • is the integer to use as a denominator
    • DOLLARFR(), converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction.

Description

DOLLARFR (DecimalDollar,Fraction)

  • Argument is a decimal number to be converted into fraction.
  • Argument is an integer to be used as a denominator in conversion to fractional value.
  • Calci divides the fractional part of by the specified value.
  • should be >=1, else Calci displays #ERROR message.
  • If is not an integer, it is truncated.

Examples

Function Output
DOLLARFR(1.611,18) 1.10998
DOLLARFR(10.0,16) 10
DOLLARFR(3.1,20) 3.02

Related Videos

DOLLARFR

See Also

References