Difference between revisions of "Manuals/calci/EUROCONVERT"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
=EUROCONVERT(num, src, target, FP, TP)=
  
Syntax
+
*where <math>num</math>is the currency value to convert
 +
*<math>src</math>a three letter string or code of source currency
 +
*<math>target</math>a three letter string or code of target currency
 +
*<math>FP</math>(Full precision) is a logical value TRUE or FALSE that specifies how to display the result
 +
*<math>TP</math>(Triangular precision) is an integer for rounding the intermediate euro value
  
</div></div>
+
EUROCONVERT()
----
+
*converts a number to euros
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
*converts a number from euros to a euro member currency
 +
*converts a number from one euro currency to another with triangular precision
  
Examples-1
+
== Description ==
 +
EUROCONVERT(num, src, target, FP, TP)
  
</div></div>
+
For Example,
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
1)TO convert currency of 'France' to 'Euros', following function can be used -
  
</div></div>
+
EUROCONVERT(5,"FRF","EUR",TRUE) ''returns 0.7622450861870519''
----
 
<div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">It converts a number to euros, converts a number from euros to a euro member currency.</font></font></font>
+
2)TO convert currency of 'Austria' to 'Euros', following function can be used -
  
</div></div>
+
EUROCONVERT(1,"ATS","EUR") ''returns 0.07''
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="6">EUROCONVERT</font></div></div>
 
----
 
<div id="6SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">EUROCONVERT</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">(</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">N</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">,</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">src</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">,</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">target</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">,FP,TP)</font></font></font>
+
3)2)TO convert currency of 'Austria' to currency of 'France', following function can be used -
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">where num''' '''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">is the currency value that is to be convert,src is a reference to a cell containing the string, corresponding to the ISO code for the source currency.</font></font></font>
+
EUROCONVERT(1,"ATS","FRF",FALSE,2) ''returns 0.45''
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Currency codes that are available in the EUROCONVERT function:</font></font></font>
 
  
{| width="323" cellpadding="1"
+
*The <math>src</math> and <math>target</math> currency codes  for 13 member countries of European Union can be used from the following code table -
|- valign="bottom"
+
 
| width="114" bgcolor="#ffffff" |
+
{| class="wikitable"
<center><font color="#000000"><font face="Tahoma, sans-serif"><font size="1">'''Country/Region'''</font></font></font></center>
+
|-
| width="133" bgcolor="#ffffff" |
+
!Country !!Basic Unit of Currency!!!ISO Code
<center><font color="#000000"><font face="Tahoma, sans-serif"><font size="1">'''Basic unit of currency'''</font></font></font></center>
+
|-
| width="71" bgcolor="#ffffff" |
+
| Austria || schilling || ATS
<center><font color="#000000"><font face="Tahoma, sans-serif"><font size="1">'''ISO code'''</font></font></font></center>
+
|-
|- valign="top"
+
| Belgium || franc || BEF
| width="114" |
+
|-
<font face="Tahoma, sans-serif"><font size="1">Belgium</font></font>
+
| Finland || markka || FIM
| width="133" |
+
|-
<font face="Tahoma, sans-serif"><font size="1">franc</font></font>
+
| France || franc || FRF
| width="71" |
+
|-
<font face="Tahoma, sans-serif"><font size="1">BEF</font></font>
+
| Germany || deutsche mark || DEM
|- valign="top"
+
|-
| width="114" bgcolor="#f2f2f2" |
+
| Greece || drachma || GRD
<font face="Tahoma, sans-serif"><font size="1">Luxembourg</font></font>
+
|-
| width="133" bgcolor="#f2f2f2" |
+
| Ireland || pound || IEP
<font face="Tahoma, sans-serif"><font size="1">franc</font></font>
+
|-
| width="71" bgcolor="#f2f2f2" |
+
| Italy || lira || ITL
<font face="Tahoma, sans-serif"><font size="1">LUF</font></font>
+
|-
|- valign="top"
+
| Luxembourg || franc || LUF
| width="114" |
+
|-
<font face="Tahoma, sans-serif"><font size="1">Germany</font></font>
+
| Netherlands || guilder || NLG
| width="133" |
+
|-
<font face="Tahoma, sans-serif"><font size="1">deutsche mark</font></font>
+
| Portugal || escudo || PTE
| width="71" |
+
|-
<font face="Tahoma, sans-serif"><font size="1">DEM</font></font>
+
| Slovenia || tolar || SIT
|- valign="top"
+
|-
| width="114" bgcolor="#f2f2f2" |
+
| Spain || peseta || ESP
<font face="Tahoma, sans-serif"><font size="1">Spain</font></font>
+
|-
| width="133" bgcolor="#f2f2f2" |
+
| Euro member states || euro ||EUR
<font face="Tahoma, sans-serif"><font size="1">peseta</font></font>
 
| width="71" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">ESP</font></font>
 
|- valign="top"
 
| width="114" |
 
<font face="Tahoma, sans-serif"><font size="1">France</font></font>
 
| width="133" |
 
<font face="Tahoma, sans-serif"><font size="1">franc</font></font>
 
| width="71" |
 
<font face="Tahoma, sans-serif"><font size="1">FRF</font></font>
 
|- valign="top"
 
| width="114" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">Ireland</font></font>
 
| width="133" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">pound</font></font>
 
| width="71" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">IEP</font></font>
 
|- valign="top"
 
| width="114" |
 
<font face="Tahoma, sans-serif"><font size="1">Italy</font></font>
 
| width="133" |
 
<font face="Tahoma, sans-serif"><font size="1">lira</font></font>
 
| width="71" |
 
<font face="Tahoma, sans-serif"><font size="1">ITL</font></font>
 
|- valign="top"
 
| width="114" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">Netherlands</font></font>
 
| width="133" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">guilder</font></font>
 
| width="71" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">NLG</font></font>
 
|- valign="top"
 
| width="114" |
 
<font face="Tahoma, sans-serif"><font size="1">Austria</font></font>
 
| width="133" |
 
<font face="Tahoma, sans-serif"><font size="1">schilling</font></font>
 
| width="71" |
 
<font face="Tahoma, sans-serif"><font size="1">ATS</font></font>
 
|- valign="top"
 
| width="114" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">Portugal</font></font>
 
| width="133" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">escudo</font></font>
 
| width="71" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">PTE</font></font>
 
|- valign="top"
 
| width="114" |
 
<font face="Tahoma, sans-serif"><font size="1">Finland</font></font>
 
| width="133" |
 
<font face="Tahoma, sans-serif"><font size="1">markka</font></font>
 
| width="71" |
 
<font face="Tahoma, sans-serif"><font size="1">FIM</font></font>
 
|- valign="top"
 
| width="114" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">Greece</font></font>
 
| width="133" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">drachma</font></font>
 
| width="71" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">GRD</font></font>
 
|- valign="top"
 
| width="114" |
 
<font face="Tahoma, sans-serif"><font size="1">Slovenia</font></font>
 
| width="133" |
 
<font face="Tahoma, sans-serif"><font size="1">tolar</font></font>
 
| width="71" |
 
<font face="Tahoma, sans-serif"><font size="1">SIT</font></font>
 
|- valign="top"
 
| width="114" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">Euro member states</font></font>
 
| width="133" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">euro</font></font>
 
| width="71" bgcolor="#f2f2f2" |
 
<font face="Tahoma, sans-serif"><font size="1">EUR</font></font>
 
 
|}
 
|}
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''target'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">   is a three-letter string, or cell reference, corresponding to the ISO code of the currency for which the number is converted.</font></font></font>
+
*<math>FP</math> can be a logical value TRUE(or 1) or FALSE(or 0). If argument is TRUE(or 1), Calci displays all significant digits.
 +
*If <math>FP</math> is omitted, Calci assumes it as FALSE(or 0) and uses default precision.
 +
*<math>TP</math> is the triangular precision integer value &gtequal;3 that specifies the number of significant digits to be used for converting intermediate euro value, while converting between two euro member currencies.
 +
*If <math>src</math> and <math>target</math> codes are same, Calci returns the original value.
 +
*If any argument is invalid, Calci displays a #NULL error message.
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">FP is a logical value (1 or 0) which specifies how to display the result and</font></font></font>
+
== Examples ==
  
<br /><br />
+
<div id="4SpaceContent" class="zcontent" align="left">
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">TP is an integer equal to or greater than 3 that specifies the number of significant digits to be used for the intermediate euro value when converting between two euro member currencies.</font></font></font>
+
{| id="TABLE2" class="SpreadSheet blue"
 
 
</div></div>
 
----
 
<div id="1SpaceContent" class="zcontent" align="left">
 
 
 
{| id="TABLE3" class="SpreadSheet blue"
 
 
|- class="even"
 
|- class="even"
 
| class=" " |
 
| class=" " |
| Column1
+
| ColumnA
| Column2
+
| ColumnB
| Column3
+
| ColumnC
| Column4
+
| ColumnD
 
|- class="odd"
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | Row1
 
| class="sshl_f " | 2.2
 
| class="sshl_f " | 2.2
 
| class=" " | DEM
 
| class=" " | DEM
| class="sshl_f " | EUR
+
| class=" " | EUR
| class="sshl_f" | 1.12
+
| class=" " | FALSE
|- class="even"
 
| class="  " | Row2
 
| class="                                                            " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| Row3
 
| class="  SelectTD" |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row4
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row6
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|}
 
 
 
<div align="left">[[Image:calci1.gif]]</div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"> 
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let's see an example in Column1Row1,Column2Row1,Column3Row3</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let B2 = 2.2</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">C2= DEM</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">D2=EUR</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">ie.=EUROCONVERT(C1R1,C2R1,C3R1) is 1.12</font></font></font>
 
 
 
</div>
 
----
 
<div id="9SpaceContent" class="zcontent" align="left">
 
 
 
{| id="TABLE2" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 1
 
| class=" " | NLG
 
| class="sshl_f " | EUR
 
| class="sshl_f" | 0.45
 
 
|- class="even"
 
|- class="even"
 
| class="  " | Row2
 
| class="  " | Row2
| class="                                                                                                           " |
+
| class="sshl_f" |  
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class="  " | Row3
| class="  SelectTD" |
+
| class="sshl_f" |
<div id="9Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="9Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
|- class="even"
| Row4
+
| class=" " | Row4
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
Line 254: Line 110:
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
| class=" " |
+
| class=" " |  
| class=" " |
 
|- class="even"
 
| Row6
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
 
| class=" " |
 
| class=" " |
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
 
----
 
<div id="7SpaceContent" class="zcontent" align="left"> 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let B2 = 1</font></font></font>
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">C2= NLG</font></font></font>
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">D2=EUR</font></font></font>
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">ie.=EUROCONVERT(C1R1,C2R1,C3R1) is 0.45</font></font></font>
 
  
<br /><br />
 
  
<br /><br />
+
== See Also ==
 +
*[[Manuals/calci/DOLLARDE | DOLLARDE]]
 +
*[[Manuals/calci/DOLLARFR | DOLLARFR]]
  
</div>
+
== Reference ==
----
+
*[http://en.wikipedia.org/wiki/Euro Euro]

Revision as of 18:59, 20 December 2013

EUROCONVERT(num, src, target, FP, TP)

  • where is the currency value to convert
  • a three letter string or code of source currency
  • a three letter string or code of target currency
  • (Full precision) is a logical value TRUE or FALSE that specifies how to display the result
  • (Triangular precision) is an integer for rounding the intermediate euro value

EUROCONVERT()

  • converts a number to euros
  • converts a number from euros to a euro member currency
  • converts a number from one euro currency to another with triangular precision

Description

EUROCONVERT(num, src, target, FP, TP)

For Example,

1)TO convert currency of 'France' to 'Euros', following function can be used -

EUROCONVERT(5,"FRF","EUR",TRUE) returns 0.7622450861870519

2)TO convert currency of 'Austria' to 'Euros', following function can be used -

EUROCONVERT(1,"ATS","EUR") returns 0.07

3)2)TO convert currency of 'Austria' to currency of 'France', following function can be used -

EUROCONVERT(1,"ATS","FRF",FALSE,2) returns 0.45


  • The and currency codes for 13 member countries of European Union can be used from the following code table -
Country Basic Unit of Currency !ISO Code
Austria schilling ATS
Belgium franc BEF
Finland markka FIM
France franc FRF
Germany deutsche mark DEM
Greece drachma GRD
Ireland pound IEP
Italy lira ITL
Luxembourg franc LUF
Netherlands guilder NLG
Portugal escudo PTE
Slovenia tolar SIT
Spain peseta ESP
Euro member states euro EUR
  • can be a logical value TRUE(or 1) or FALSE(or 0). If argument is TRUE(or 1), Calci displays all significant digits.
  • If is omitted, Calci assumes it as FALSE(or 0) and uses default precision.
  • is the triangular precision integer value &gtequal;3 that specifies the number of significant digits to be used for converting intermediate euro value, while converting between two euro member currencies.
  • If and codes are same, Calci returns the original value.
  • If any argument is invalid, Calci displays a #NULL error message.

Examples

ColumnA ColumnB ColumnC ColumnD
Row1 2.2 DEM EUR FALSE
Row2
Row3
Row4
Row5



See Also

Reference