Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1013 Bytes

File metadata and controls

33 lines (21 loc) · 1013 Bytes

http://es.wikipedia.org/wiki/Nombres_de_los_números_en_español

http://simple.wikipedia.org/wiki/Names_of_numbers_in_English

Sample Usage:

System.out.println(MontoEspanol.escribir("3331.456"));
// TRES MIL TRESCIENTOS TREINTA Y UNO CON 46/100

System.out.println(MontoEspanol.escribir(121.456));
// CIENTO VEINTE Y UNO CON 46/100

System.out.println(MontoIngles.escribir("7.0"));
// SEVEN WHIT 00/100

System.out.println(MontoIngles.escribir("30.0"));
// THIRTY WHIT 00/100

System.out.println(MontoIngles.escribir("59.0"));
// FIFTY NINE WHIT 00/100

System.out.println(MontoIngles.escribir("121.456"));
// ONE HUNDRED TWENTY ONE WHIT 46/100

System.out.println(MontoIngles.escribir("121.456", false, false));
// ONE HUNDRED TWENTY ONE

System.out.println(MontoIngles.escribir("111777.11", false, false));
// ONE HUNDRED ELEVEN THOUSAND SEVEN HUNDRED SEVENTY SEVEN

System.out.println(MontoIngles.escribir("1000000000"));
// ONE BILLON WHIT 00/100