Skip to Content
0
Former Member
Oct 27, 2005 at 10:37 AM

number to currency conversion

85 Views

Is there an easy way to convert between numbers and currency strings? SBO does it at several places, I need to do the exact same so the user can enter amounts in the same way as he/she does in the rest of SBO.

5000000 -> EUR 5.000.000,00 or USD 5,000,000.00 depending on locales, etc (and back)

Or do I need to write a piece of code to analise the input, retreive the locales and format the output (and hope that I made something that behaves just like SBO in alle cases)?