Difference between revisions of "Manuals/calci/DOLLARFR"
Jump to navigation
Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> <font color="#000000"><font face="Arial, sans-serif"><font size="2">'''DOLLARFR'''</font><font size="2">(</font><fo...") |
|||
| Line 1: | Line 1: | ||
| − | + | =DOLLARFR(DD, Fraction)= | |
| − | + | where, | |
| + | *<math>DD</math> is a dollar value in decimal | ||
| + | *<math>Fraction</math> is the integer to use as a denominator | ||
| − | + | DOLLARFR() converts a dollar price in decimal number to dollar price in fraction. | |
| − | + | == Description == | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | DOLLARFR(DD, Fraction) | |
| − | </ | + | *Argument <math>DD</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. | |
| − | < | + | *Calci divides the fractional part of <math>DD</math> by the specified <math>Fraction</math> value. |
| + | *<math>Fraction</math> should be >=1, else Calci displays #ERROR message. | ||
| + | *If <math>Fraction</math> is not an integer, it is truncated. | ||
| − | + | == Examples == | |
| − | + | <div id="6SpaceContent" class="zcontent" align="left"> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | <div id=" | ||
{| id="TABLE3" class="SpreadSheet blue" | {| id="TABLE3" class="SpreadSheet blue" | ||
|- class="even" | |- class="even" | ||
| − | | class=" " | | + | | class=" " | '''Function''' |
| − | + | | class=" " | '''Output''' | |
| − | | class=" " | | + | |
| − | |||
| − | |||
|- class="odd" | |- class="odd" | ||
| − | + | | class="sshl_f" |DOLLARFR(1.611,18) | |
| − | | class="sshl_f" | 1. | + | | class="sshl_f" |1.10998 |
| − | | class=" | + | |
| − | |||
| − | |||
|- class="even" | |- class="even" | ||
| − | + | | class="sshl_f" |DOLLARFR(10.0,16) | |
| − | | class="sshl_f" | | + | | class="sshl_f" |10 |
| − | | class=" | + | |
| − | |||
| − | |||
|- class="odd" | |- class="odd" | ||
| − | + | | class="sshl_f" |DOLLARFR(3.1,20) | |
| − | + | | class="sshl_f" |3.02 | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | class=" " | | ||
| − | | class=" | ||
| − | |||
|} | |} | ||
| − | + | == See Also == | |
| − | + | ||
| + | *[[Manuals/calci/DOLLARDE | DOLLARDE]] | ||
| + | *[[Manuals/calci/DOLLAR | DOLLAR]] | ||
| + | |||
| + | ==References== | ||
| + | |||
| + | *[http://en.wikipedia.org/wiki/Dollar Dollar] | ||
Revision as of 16:26, 16 January 2014
DOLLARFR(DD, Fraction)
where,
- is a dollar value in decimal
- is the integer to use as a denominator
DOLLARFR() converts a dollar price in decimal number to dollar price in fraction.
Description
DOLLARFR(DD, 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.