This is a documentation subpage for Module:Exchangerate. It contains usage information, categories and other content that is not part of the original module page. |
Module status
The module is currently only able to convert euro in currencies available at c:Data:ECB euro foreign exchange reference rates.tab and c:Data:Xe.com exchange rates.tab.
Functionality
The function rate
returns the number of 1 unit of the currency given as "source" in the currency given as "target" as the raw value calculated from available numbers. If "verbose" is set, the module throws an error if no conversion rate is available.
The function revisionTime
takes "source", "target" and "verbose" and returns the date of the last update for the rate.
The function convert
takes "source", "target" and "verbose" and additionally "amount". It converts the number given in "amount" in the "source" currency into the "target" currency with rounded digits.