get the smallest unit of a currency in python
<p>a credit card provider needs the transaction amount in cents or smallest available unit of the currency. since I want the code to be portable I have to get the smallest unit of a given currency and it's factor to the main unit. I've tried to get it from the locale module but i had no luck.</p>

<p><a href="http://docs.python.org/library/locale.html" rel="nofollow">http://docs.python.org/library/locale.html</a></p>

<p><strong>Example</strong></p>

<p>i have a currency code as described in <a href="http://en.wikipedia.org/wiki/ISO_4217" rel="nofollow">iso 4217</a></p>

<p>EUR for Euro</p>

<p>then i need 1 Euro is 100 Eurocents (only the information 1/100, no text is needed)</p>

<p>according to <a href="http://en.wikipedia.org/wiki/Pound_sterling" rel="nofollow">wikipedia</a> there currencies which have more than 2 units like the old pund sterling</p>
