Difference between revisions of "Manuals/calci/DOLLARDE"

From ZCubes Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=DOLLARDE(FD, Fraction)=
+
<div style="font-size:30px">'''DOLLARDE (FractionalDollar,Fraction)'''</div><br/>
  
 
where,
 
where,
*<math>FD</math> is a dollar value in fraction
+
*<math>FractionalDollar</math> is a dollar value in fraction
 
*<math>Fraction</math> is the integer to use as a denominator
 
*<math>Fraction</math> is the integer to use as a denominator
 
+
**DOLLARDE(), converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number.
DOLLARDE() converts a dollar price in fraction into decimal dollar price.
 
  
 
== Description ==
 
== Description ==
  
DOLLARDE(FD, Fraction)
+
DOLLARDE (FractionalDollar,Fraction)
  
*Argument <math>FD</math> is a number that is expressed as an integer part and fraction part, seperated by decimal symbol.
+
*Argument <math>FractionalDollar</math> is a number that is expressed as an integer part and fraction part, seperated by decimal symbol.
 
*Argument <math>Fraction</math> is an integer to be used as a denominator in conversion to decimal value.
 
*Argument <math>Fraction</math> is an integer to be used as a denominator in conversion to decimal value.
*Calci divides the fractional part of <math>FD</math> by the specified <math>Fraction</math> value.
+
*Calci divides the fractional part of <math>FractionalDollar</math> by the specified <math>Fraction</math> value.
  
 
e.g. DOLLARDE(1.07,16) is calculated as ($1 + 7/16 = $1.4375000000000004)
 
e.g. DOLLARDE(1.07,16) is calculated as ($1 + 7/16 = $1.4375000000000004)
Line 54: Line 53:
  
 
*[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 17:09, 22 August 2018

DOLLARDE (FractionalDollar,Fraction)


where,

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

Description

DOLLARDE (FractionalDollar,Fraction)

  • Argument is a number that is expressed as an integer part and fraction part, seperated by decimal symbol.
  • Argument is an integer to be used as a denominator in conversion to decimal value.
  • Calci divides the fractional part of by the specified value.

e.g. DOLLARDE(1.07,16) is calculated as ($1 + 7/16 = $1.4375000000000004)

  • should be >=1, else Calci displays #ERROR message.
  • If is not an integer, it is truncated.

Examples

Function Output
DOLLARDE(1.11,18) 1.6111111111111116
DOLLARDE(10.0,16) 10
DOLLARDE(3.1,20) 3.5000000000000004

Related Videos

DOLLARDE

See Also

References