Tuesday, June 23, 2009

Number to Mexican Pesos (Spanish)

I went looking everywhere for a section of code that would do the following:

Take a number such as 633,623,202.16 and translated it into spanish in terms of mexican pesos.

Suprisingly absolutely zero code exists (at least that I could find) that would do the same thing in C#. Hopefully this helps someone. I haven't optimized it at all but it should be easy enough if someone had the time to optimize it.

The code can be found here.

0 comments: