[Rails] Re: Dealing with money
Ants Pants wrote in post #983192:
> The formatting of the amounts will be ###,###.## (it doesn't have to be
> locale specific). I also wanted to have a breakdown of the different
> currencies that go towards making the total ....
>
> 55.00 GBP
> 175.00 USD
> 3000.00 CAN
> --------------------
> 3230.00
How does this total make any sense? The number 3230.00 is a meaningless
value without the currency unit and exchange rate.
> I have looked around for currencies in easily downloadable format
> (JSON/YAML/XML) but haven't found any good resources. Does anyone know
> of
> something?
Downloadable format for what? Do you mean currency exchange rates?
Wouldn't you need to know that? If someone were to pledge 55.00 GBP, do
you plan on converting that into a common local currency at the time of
the pledge? Or, do you plan on converting that pledge to a local
currency at the time the final donation is processed, based on the
exchange rate at that time?
What I'm saying is that not only does it not make sense to sum the
pledges, without first converting them to a common unit, but the
conversion factor between the units changes over time.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home