kivra / money_laundry

💸 Erlang Currency and money laundering functions
MIT License
9 stars 3 forks source link

Localization #7

Open bipthelin opened 10 years ago

bipthelin commented 10 years ago

Money Laundry should handle localization both in and out, i.e:

M = money_laundry:new(<<"123,123.12">>, <<"USD">>). %% Conversion from input formatted USD
money_laundry:format(M, decimal, <<"SEK">>). %% Output as decimal formatted SEK
bipthelin commented 10 years ago

Need to decide if formatting should be specified as ISO 4217 Currency code or ISO 3166-1 alpha-2 two-letter code. Or both.