Skip to content

Converts the number into readable text in spanish, used to express currency in latin countries

Notifications You must be signed in to change notification settings

night91/spanish_number

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gem Version Build Status Coverage Status

Spanish Number

  • Express the number in spanish text, used mainly for currency in latin countries.
  • Expresa cualquier numero en cadena de texto, diseñado originalmente para expresar una cifra en MXN.

Usage

require 'spanish_number'
number = 123456.70
number.to_spanish_text("mxn")
number.to_spanish_text_percent

result

ciento veintitres mil cuatrocientos cincuenta y seis pesos 70/100 M.N.
ciento veintitres mil cuatrocientos cincuenta y seis punto setenta por ciento

Currencies

  • You can modify the code to add more currencies.
  • Puedes modificar el proyecto para añadir otras monedas

About

Converts the number into readable text in spanish, used to express currency in latin countries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%