Professional Documents
Culture Documents
Convertir Numeros en Texto en File Maker (Up To 18 Digits)
Convertir Numeros en Texto en File Maker (Up To 18 Digits)
Sample Output:
CurrencyToText_SP ( 200.32 ,
"pesos" , "M.N."
Trim (
If ( N01 > 0 or N02 > 0 or N03 > 0 ; "mil " ; "" ) &
//Centenas de Billn
//Unidades de Billn
Case ( N01 = 0 and N02 = 0 and N03 = 0 and N04 = 0 and N05 = 0 and
N06 = 0 ; "" ;
N01 = 0 and N02 = 0 and N03 = 0 and N04 = 0 and N05 = 0 and N06
= 1 ; "billn" ; "billones" ) & " " &
If ( N07 > 0 or N08 > 0 or N09 > 0 ; "mil " ; "" ) &
//Centenas de Milln
//Decenas de Milln
//Unidades de Milln
Case ( N07 = 0 and N08 = 0 and N09 = 0 and N10 = 0 and N11 = 0 and
N12 = 0 ; "" ;
N07 = 0 and N08 = 0 and N09 = 0 and N10 = 0 and N11 = 0 and N12
= 1 ; "milln" ; "millones" ) & " " &
//Centenas de Mil
//Decenas de Mil
//Unidades de Mil
If ( N13 > 0 or N14 > 0 or N15 > 0 ; "mil " ; "" ) &
//Centenas
//Decenas
//Unidades
Currency & " " & Decimal & "/100 " & Sufijo ) )