Advertisement
3_2004-2005 String Manipulation #136796

Mex_Currency2Words

This module contains a function that will take a currency var (up to 999,999,999.99) and return the result (including cents) as a string "spelled-written" amount formated for mexican pesos. 'Public Function ConvierteNumeroALetra(Numero As Currency) As String' Altrough it was made for mexican pesos, it can be easily adapted for any unit, in any language,in any way. There are lots of number2words functions out there, but I think mine is the more understandable ans simplier of 'em. You will have to spend some time converting the spanish numbers to english, thou... ---------------- Este modulo contiene una funcion que toma una variable de moneda(currency) (Hasta 999,999,999.99) y regresa la cantidad de forma escrita como String. (Incluye centavos) 'Public Function ConvierteNumeroALetra(Numero As Currency) As String' La cantidad escrita la regresa usando el formato de monto escrito en pesos mexicanos, usado en cheques, depositos, facturas, etc. Por ejemplo: $1,525.23 = (Mil Quinientos Veinticinco Pesos, 23/100 M.N.) Los centavos se escriben siempre sobre cien, y M.N. significa Moneda Nacional. Si esto les sirve, haganmelo saber. -Fongus

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine