Ns104:Currency amount

From solab
Jump to navigation Jump to search

Values

As of 12 pm Nov 10, 2006 according to http://www.newyorkfed.org/markets/fxrates/noon.cfm

Exchange rate (value of 1 US Dollar) and allowed currency symbols Description
1 €, euro, EURProperty "Corresponds to" is a declarative property and can only be used on a property or category page. European Monetary Union
1.6 CH, CHF, SFrProperty "Corresponds to" is a declarative property and can only be used on a property or category page. Swiss Francs

Note that in SMW 0.5, the currency symbol must follow the amount.

TODO

Automatically regenerate the conversion rates in this page each day. http://www.newyorkfed.org/xml/schemas/FX_Utility.xsd lists various currency codes as enumerated values of CL_CURRENCY_UNIT.

Users need to know when the currency was converted and/or the date of the currency conversion factors. In the tooltip display of alternate currencies, we could show the date of the conversion, based on the date of last update:

(Currency conversions as of 2006-05-03)

If/when float values support prefixes, we can do $59.95 and £20.

Maybe there should be a way to overload the float value to specify a precision (e.g. 100 cents) and format.